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

Function TestFSFSByteRangeSingleThread

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

Source from the content-addressed store, hash-verified

342}
343
344func TestFSFSByteRangeSingleThread(t *testing.T) {
345 t.Parallel()
346
347 stop := make(chan struct{})
348 defer close(stop)
349
350 fs := &FS{
351 FS: fsTestFilesystem,
352 Root: ".",
353 AcceptByteRange: true,
354 CleanStop: stop,
355 }
356 h := fs.NewRequestHandler()
357
358 testFSByteRange(t, h, "/fs.go")
359 testFSByteRange(t, h, "/README.md")
360}
361
362func TestFSFSCompressConcurrent(t *testing.T) {
363 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…