test: 程式碼.js branch gaps + re-ratchet thresholds to 95/90/95/95 (#107 P1) - #157
Merged
Conversation
…107 P1) Add 2 new backend branch gap tests: - copySchedule: source ID not found in Data index (L458) - getVersionData: empty history sheet, lastRow < 2 (L542-543) Re-ratchet coverage thresholds from 67/74/82/67 to 95/90/95/95: - Overall branch: 77.38% → 94.09% - Statements: 70.71% → 98.55% - Functions: 84.94% → 98.93% - Lines: 70.06% → 99.45% All 1156 tests pass. Coverage thresholds pass. refs #107 Co-authored-by: Claude Opus 4.6 <noreply@anthropic.com> Agend-Agent: cb-team-impl Agend-Task: t-20260624115456258169-40473-34 Agend-Branch: test/107-p1-backend-branches Agend-Issued-At: 2026-06-24T11:55:26.618170+00:00
Owner
Author
✅ VERIFIEDReviewed HEAD: Files Reviewed (2)
Fast Path Checklist
Evidence
|
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.
What
Fill backend branch coverage gaps in
程式碼.jsand re-ratchet coverage thresholds. Part of #107 Phase 2 P1.Part 1: Branch Gap Fill
Added 2 new test cases in
backend.test.js:copySchedule_findScheduleRowInforeturns -1 for nonexistent sourcegetVersionDatalastRow < 2(header only, no data rows)Part 2: Threshold Re-Ratchet
Changed Files (2)
vitest.config.js(threshold re-ratchet)tests/unit/backend.test.js(+2 tests)Verification
npm test: 1156 tests passed (37 files) ✅npx vitest run --coverage: all thresholds pass ✅refs #107