Repository navigation
fix(oracle-gaps): scope mutant anchors to declarations outside statement range - #196
schiller-manuel wants to merge 1 commit into
Conversation
…ent range anchorOf() previously checked only FirstStatement..LastStatement, which excludes Parameter, PropertyDeclaration, EnumMember, Decorator, HeritageClause, ComputedPropertyName, and ExportAssignment. Mutants inside default parameter initializers or class field initializers walked all the way to SourceFile, dumping the entire file into mutant.anchor and mutant.key. Stop at statements (via ts.isStatement) and small enclosing declarations (parameters, property declarations, enum members, decorators, heritage clauses, class static blocks, accessors, and computed member names), and add regression tests covering tight anchors and edit stability. Co-authored-by: Copilot App <223556219+Copilot@users.noreply.github.com>
|
Warning Review limit reachedYou've used all free OSS reviews for now. Wait for the free limit to reset to keep reviewing this public repository. Next included review available in 34 minutes. View limit details
Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out. |
|
Summary
anchorOfinpackages/oracles/oracle-gaps/schemata.mjsso mutants outside TypeScript'sFirstStatement..LastStatementrange no longer walk up toSourceFileand dump the entire file's tokens intomutant.anchorandmutant.key.ts.isStatement(coveringExportAssignmentalongside ordinary statements) and tight enclosing declarations:Parameter,PropertyDeclaration(including auto-accessors),EnumMember,Decorator,HeritageClause,ClassStaticBlockDeclaration,Accessor, and computed member names on class elements / methods / accessors.packages/oracles/tests/oracle-gaps-anchor.test.tsverifying tight, stable anchors for default parameters, class fields, decorators, heritage clauses, computed member names, enum members, andexport default.Validation
pnpm run build— passedpnpm run typecheck— passedpnpm run lint:check— passedpnpm run format:check— passedpnpm --filter @tanstack/oracles run test— 9 files, 120 tests passedpnpm --filter @tanstack/oracles run test:oracle-gaps:fast— 5 files, 33,899 tests passedpnpm --filter @tanstack/oracles run test:oracle-gaps:shards— 5 shards partitionedpnpm --filter @tanstack/oracles run test:pr-shards— 7 partitions verified