MCPcopy
hub / github.com/valyala/fasthttp / TestFSFSCompressSingleThread

Function TestFSFSCompressSingleThread

fs_fs_test.go:405–425  ·  view source on GitHub ↗
(t *testing.T)

Source from the content-addressed store, hash-verified

403}
404
405func TestFSFSCompressSingleThread(t *testing.T) {
406 t.Parallel()
407
408 stop := make(chan struct{})
409 defer close(stop)
410
411 fs := &FS{
412 FS: fsTestFilesystem,
413 Root: ".",
414 GenerateIndexPages: true,
415 Compress: true,
416 CompressBrotli: true,
417 CompressZstd: true,
418 CleanStop: stop,
419 }
420 h := fs.NewRequestHandler()
421
422 testFSFSCompress(t, h, "/fs.go")
423 testFSFSCompress(t, h, "/examples/")
424 testFSFSCompress(t, h, "/README.md")
425}
426
427func testFSFSCompress(t *testing.T, h RequestHandler, filePath string) {
428 var ctx RequestCtx

Callers

nothing calls this directly

Calls 2

NewRequestHandlerMethod · 0.95
testFSFSCompressFunction · 0.85

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…