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

Function TestDirFSFSByteRangeSingleThread

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

Source from the content-addressed store, hash-verified

802}
803
804func TestDirFSFSByteRangeSingleThread(t *testing.T) {
805 t.Parallel()
806
807 stop := make(chan struct{})
808 defer close(stop)
809
810 fs := &FS{
811 FS: dirTestFilesystem,
812 Root: ".",
813 AcceptByteRange: true,
814 CleanStop: stop,
815 }
816 h := fs.NewRequestHandler()
817
818 testFSByteRange(t, h, "/fs.go")
819 testFSByteRange(t, h, "/README.md")
820}
821
822func TestDirFSFSCompressConcurrent(t *testing.T) {
823 t.Parallel()

Callers

nothing calls this directly

Calls 2

NewRequestHandlerMethod · 0.95
testFSByteRangeFunction · 0.85

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…