diff options
author | Matthew Holt <mholt@users.noreply.github.com> | 2020-08-31 12:33:43 -0600 |
---|---|---|
committer | Matthew Holt <mholt@users.noreply.github.com> | 2020-08-31 12:33:43 -0600 |
commit | 494032584436338896cd275d7563bc7b325cd1c4 (patch) | |
tree | 606be03a2280a03d7e3da33301895abc8a717d84 /modules/caddyhttp/fileserver/browse_test.go | |
parent | 744d04c2585d50f64cf3d43d139c310a18e78f73 (diff) |
fileserver: Fix inconsistencies in browse JSON
Diffstat (limited to 'modules/caddyhttp/fileserver/browse_test.go')
-rw-r--r-- | modules/caddyhttp/fileserver/browse_test.go | 36 |
1 files changed, 18 insertions, 18 deletions
diff --git a/modules/caddyhttp/fileserver/browse_test.go b/modules/caddyhttp/fileserver/browse_test.go index b1f7092..5d5874f 100644 --- a/modules/caddyhttp/fileserver/browse_test.go +++ b/modules/caddyhttp/fileserver/browse_test.go @@ -11,15 +11,15 @@ func BenchmarkBrowseWriteJSON(b *testing.B) { fsrv := new(FileServer) fsrv.Provision(caddy.Context{}) listing := browseListing{ - Name: "test", - Path: "test", - CanGoUp: false, - Items: make([]fileInfo, 100), - NumDirs: 42, - NumFiles: 420, - Sort: "", - Order: "", - ItemsLimitedTo: 42, + Name: "test", + Path: "test", + CanGoUp: false, + Items: make([]fileInfo, 100), + NumDirs: 42, + NumFiles: 420, + Sort: "", + Order: "", + Limit: 42, } b.ResetTimer() @@ -36,15 +36,15 @@ func BenchmarkBrowseWriteHTML(b *testing.B) { template: template.New("test"), } listing := browseListing{ - Name: "test", - Path: "test", - CanGoUp: false, - Items: make([]fileInfo, 100), - NumDirs: 42, - NumFiles: 420, - Sort: "", - Order: "", - ItemsLimitedTo: 42, + Name: "test", + Path: "test", + CanGoUp: false, + Items: make([]fileInfo, 100), + NumDirs: 42, + NumFiles: 420, + Sort: "", + Order: "", + Limit: 42, } b.ResetTimer() |