Function
getCompressor
(compressor: string | undefined)
Source from the content-addressed store, hash-verified
| 67 | } |
| 68 | |
| 69 | function getCompressor(compressor: string | undefined): CompressorName { |
| 70 | if (!compressor) return null; |
| 71 | |
| 72 | switch (compressor) { |
| 73 | case 'zstd': |
| 74 | return 'zstd'; |
| 75 | case 'zlib': |
| 76 | return 'zlib'; |
| 77 | case 'snappy': |
| 78 | return 'snappy'; |
| 79 | default: |
| 80 | throw new Error('unsupported test runner compressor, would default to no compression'); |
| 81 | } |
| 82 | } |
| 83 | |
| 84 | export class TestConfiguration { |
| 85 | version: string; |
Tested by
no test coverage detected