(t *testing.T)
| 403 | } |
| 404 | |
| 405 | func 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 | |
| 427 | func testFSFSCompress(t *testing.T, h RequestHandler, filePath string) { |
| 428 | var ctx RequestCtx |
nothing calls this directly
no test coverage detected
searching dependent graphs…