Skip to content

Comments

feat: Add 58 new unit tests for TSS, TTS, rules, overlap, output, and parsers#9

Merged
TianYuan-Liu merged 2 commits intomasterfrom
continuous-claude/iteration-8/2026-01-30-8601b64a
Jan 30, 2026
Merged

feat: Add 58 new unit tests for TSS, TTS, rules, overlap, output, and parsers#9
TianYuan-Liu merged 2 commits intomasterfrom
continuous-claude/iteration-8/2026-01-30-8601b64a

Conversation

@TianYuan-Liu
Copy link
Member

  • TSS extended tests (10): spanning all zones, exact boundaries for both
    strands, very small regions, zero TSS/promoter distances, and percentage
    calculation accuracy
  • TTS extended tests (8): entirely within zone, spanning TTS/downstream,
    negative strand downstream, exact boundaries, very large zones, and
    percentage accuracy for both strands
  • Rules extended tests (9): empty candidates, threshold failures with
    fallback, pctg_area filtering, multiple independent groups, three-candidate
    merging, no rules match fallback, and exact threshold boundaries
  • Overlap extended tests (9): find_search_start_index edge cases, region
    completely within exon, spanning multiple exons, single exon genes, beyond
    distance threshold, transcript/gene level processing, and negative strand
    first exon handling
  • Output extended tests (6): metadata with newlines/whitespace, special
    characters, exact header output verification, negative coordinates,
    merged transcripts format, and all strands handling
  • Parser BED extended tests (5): whitespace handling, very long lines,
    mixed valid/invalid lines, tab-only lines, and coordinate ordering
  • Parser GTF extended tests (7): overlapping genes, malformed attributes,
    CDS/UTR entries, quoted values with spaces, no exon entries, different
    sources, and max length tracking across chromosomes
  • Config comprehensive tests (6): whitespace in rules, all area combinations,
    extreme values, percentage ranges, report level default, and distance
    overflow prevention

TianYuan-Liu and others added 2 commits January 30, 2026 02:11
… parsers

Expand test coverage from 168 to 226 unit tests across multiple modules:

- TSS extended tests (10): spanning all zones, exact boundaries for both
  strands, very small regions, zero TSS/promoter distances, and percentage
  calculation accuracy
- TTS extended tests (8): entirely within zone, spanning TTS/downstream,
  negative strand downstream, exact boundaries, very large zones, and
  percentage accuracy for both strands
- Rules extended tests (9): empty candidates, threshold failures with
  fallback, pctg_area filtering, multiple independent groups, three-candidate
  merging, no rules match fallback, and exact threshold boundaries
- Overlap extended tests (9): find_search_start_index edge cases, region
  completely within exon, spanning multiple exons, single exon genes, beyond
  distance threshold, transcript/gene level processing, and negative strand
  first exon handling
- Output extended tests (6): metadata with newlines/whitespace, special
  characters, exact header output verification, negative coordinates,
  merged transcripts format, and all strands handling
- Parser BED extended tests (5): whitespace handling, very long lines,
  mixed valid/invalid lines, tab-only lines, and coordinate ordering
- Parser GTF extended tests (7): overlapping genes, malformed attributes,
  CDS/UTR entries, quoted values with spaces, no exon entries, different
  sources, and max length tracking across chromosomes
- Config comprehensive tests (6): whitespace in rules, all area combinations,
  extreme values, percentage ranges, report level default, and distance
  overflow prevention
Run cargo fmt to fix formatting issues that were causing CI to fail.
The changes include proper line breaks in assert! macros, Candidate::new()
calls, and writeln! macro chains.

Co-Authored-By: Claude (claude-opus-4-5) <noreply@anthropic.com>
@TianYuan-Liu TianYuan-Liu merged commit 2c8a2eb into master Jan 30, 2026
1 check passed
@TianYuan-Liu TianYuan-Liu deleted the continuous-claude/iteration-8/2026-01-30-8601b64a branch January 30, 2026 08:53
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant