(t *testing.T)
| 859 | } |
| 860 | |
| 861 | func 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 | |
| 883 | func TestDirFSServeFileContentType(t *testing.T) { |
| 884 | t.Parallel() |
nothing calls this directly
no test coverage detected
searching dependent graphs…