Formats: quality
passingResults of the run of the commit 8df3cc3b89 at 2026-11-22 16:24 UTC (the run) that made this site; a library whose suite was not run in it has none.
The library: Formats.
Quality gate
The library holds every condition of the gate.
| Condition | Holds | Why not |
|---|---|---|
| its tests were in the run | yes | |
| no test failed | yes | |
| no open issue of severity high or critical | yes |
Line coverage
96.9% of 3619 lines of 17 source files are reached by the library's tests. The least covered files:
| File | Lines | Hit | Covered |
|---|---|---|---|
commons/formats/src/yaml.ts | 476 | 450 | 94.5% |
commons/formats/src/semver.ts | 232 | 220 | 94.8% |
commons/formats/src/png.ts | 413 | 392 | 94.9% |
commons/formats/src/http.ts | 46 | 44 | 95.7% |
commons/formats/src/archive.ts | 545 | 523 | 96% |
commons/formats/src/xml.ts | 184 | 179 | 97.3% |
commons/formats/src/cbor.ts | 145 | 142 | 97.9% |
commons/formats/src/xz.ts | 437 | 428 | 97.9% |
commons/formats/src/json5.ts | 182 | 179 | 98.4% |
commons/formats/src/der.ts | 129 | 127 | 98.4% |
Tests
92 tests: 92 passed, 0 failed, 0 skipped, 0 planned or other.
Slowest
| Test | File | Result | Time |
|---|---|---|---|
| flipped bytes and truncations of a large file, with several blocks, are refused and none throws | suite/xz.test.ts | passed | 1671 ms |
| a value written as YAML reads back as the same value | suite/data.test.ts | passed | 471 ms |
| a file that expands to sixteen mebibytes stops at a smaller limit, and is read whole at a limit that holds it | suite/xz.test.ts | passed | 452 ms |
| a resize gives the size asked, and a picture of one colour stays that colour | suite/png.test.ts | passed | 161 ms |
| a large gzipped archive fed in small chunks is read an entry at a time, a body cancelled skipped | suite/archive.test.ts | passed | 127 ms |
| tar then untar gives the files back, the same bytes every time | suite/archive.test.ts | passed | 91 ms |
| where xz is installed, random and repetitive data it compresses reads back, and a tar it compresses is untarred | suite/xz.test.ts | passed | 88 ms |
| untarStream gives the entries and bytes untar gives, gzipped or not, however the bytes are cut | suite/archive.test.ts | passed | 72 ms |
| an icon file written and read back holds one frame per size that fits, the full-size one the picture itself | suite/png.test.ts | passed | 50 ms |
| a table written as TOML reads back as the same table | suite/data.test.ts | passed | 37 ms |
History
The last 6 runs in which the library's tests ran, oldest first.
Requirements
23 requirements: 21 proved, 0 partly (a test skipped or planned), 0 failing, 2 with no test recorded.
Not proved by a passing test: 0001-formats FR-014, 0001-formats FR-020