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

Function TestDirFSFSCompressSingleThread

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

Source from the content-addressed store, hash-verified

859}
860
861func TestDirFSFSCompressSingleThread(t *testing.T) {
862 t.Parallel()
863
864 stop := make(chan struct{})
865 defer close(stop)
866
867 fs := &FS{
868 FS: dirTestFilesystem,
869 Root: ".",
870 GenerateIndexPages: true,
871 Compress: true,
872 CompressBrotli: true,
873 CompressZstd: true,
874 CleanStop: stop,
875 }
876 h := fs.NewRequestHandler()
877
878 testFSFSCompress(t, h, "/fs.go")
879 testFSFSCompress(t, h, "/examples/")
880 testFSFSCompress(t, h, "/README.md")
881}
882
883func TestDirFSServeFileContentType(t *testing.T) {
884 t.Parallel()

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…