test: production-harden the suite to interfaze-python parity (errors/schema/tasks/guard + coverage gate)#12
Merged
Merged
Conversation
…ma, coverage gate) Mirrors interfaze-python PR #18's test hardening: dedicated errors/schema/tasks/guard suites, a shared real-asset fixture map, deeper inputs/chat/stream coverage (from_path, data-URL edge cases, control headers, tool-call streaming, malformed side-channels), and a v8 coverage gate (100% lines/statements/functions, 94%+ branches) wired into CI.
…de 18/20/22 matrix v8 branch (and occasionally line) counts can shift slightly across Node/V8 versions; a 100% floor on any metric leaves zero margin. Set lines/statements/functions to 95 and branches to 88 -- comfortably above the "~90%" target while tolerating drift.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Mirror of interfaze-python #18 — brings the JS test suite from 49 → 133 tests (9 files) with a coverage gate wired into CI.
Added
gif/avif) rejection, malformed data-URL/base64, missing API key.responseFormat(object-root passthrough, non-object wrap underresult),emptyTaskSchema, task integration.tasks.*helper (ocr/objectDetection/guiDetection/transcribe/webSearch/scrape/translate/forecast) builds the right request + returns the raw result.<guard>tag serialization, multiple codes, invalid-code throw.assets.py).Deepened
json_objectfence edge cases).Coverage gate
@vitest/coverage-v8+vitest.config.tsthresholds (95 lines/stmts/funcs, 88 branches — headroom under the actual 100% / 94.2% branches),test:coveragescript, CI runsnpm run test:coverage.src/untouched (tests + config only); typecheck + build + coverage all green.