|
1 | | -# Coverage — msgpack 3.1.0 |
| 1 | +# Coverage — msgpack 3.2.0 |
2 | 2 |
|
3 | 3 | `npm run coverage` runs both halves and fails the build under 95%. |
4 | 4 |
|
|
8 | 8 | | `lib/` + `bin/` (c8) | branches | **100%** | ≥ 95% | |
9 | 9 | | `lib/` + `bin/` (c8) | functions | **100%** | ≥ 95% | |
10 | 10 | | `lib/` + `bin/` (c8) | lines | **100%** | ≥ 95% | |
11 | | -| `src/` (gcovr) | lines | **95.2%** (902/947) | ≥ 95% | |
12 | | -| `src/` (gcovr) | branches | **95.4%** (836/876) | ≥ 95% | |
13 | | -| `src/` (gcovr) | functions | 100% (59/59) | — | |
| 11 | +| `src/` (gcovr) | lines | **95.7%** (1002/1047) | ≥ 95% | |
| 12 | +| `src/` (gcovr) | branches | **95.5%** (976/1022) | ≥ 95% | |
| 13 | +| `src/` (gcovr) | functions | 100% (66/66) | — | |
14 | 14 |
|
15 | 15 | `deps/` is excluded from the native report; the vendored msgpack-c is not our |
16 | 16 | code. `build/` is rebuilt without instrumentation at the end of |
@@ -146,6 +146,13 @@ gcovr --root . --filter src/ --exclude deps/ --no-markers --txt-metric branch -- |
146 | 146 | `kMaxPackDepth`) are marked `GCOVR_EXCL_*`, not deleted. Native overall |
147 | 147 | stays above the 95% gate (`pack_hints.inc` itself is 91% branches because |
148 | 148 | switch `default:` edges sit on the same line as covered cases). |
| 149 | +- `test/lazy.test.js` — `#40` `unpack(buf, { lazy: true })`: one-arg eager |
| 150 | + identity, nested `o.c[1]` without reading siblings, `__proto__` / |
| 151 | + `constructor` as own properties, oversized headers still throw, incomplete |
| 152 | + buffers still return `null`, `toJSON` / `JSON.stringify` / `util.inspect` |
| 153 | + match eager unpack, nested BigInt, non-object second args, and toJSON |
| 154 | + `this` checks. Lazy OOM / empty-Maybe / ObjectTemplate-failure arms are |
| 155 | + marked `GCOVR_EXCL_*`, not deleted. |
149 | 156 | - `test/cli.test.js` (12 tests) — the exit-1 paths of both CLIs: invalid JSON, |
150 | 157 | empty stdin, a pack rejection reachable from real JSON, an unparseable byte, |
151 | 158 | an oversized header, incomplete input both alone and after a good frame, and |
|
0 commit comments