Skip to content

Comments

feat: Add 56 new unit tests for Gene, Region, Exon, Overlap, Output, GTF, and Candidate modules#10

Merged
TianYuan-Liu merged 2 commits intomasterfrom
continuous-claude/iteration-9/2026-01-30-a0751e34
Jan 30, 2026
Merged

feat: Add 56 new unit tests for Gene, Region, Exon, Overlap, Output, GTF, and Candidate modules#10
TianYuan-Liu merged 2 commits intomasterfrom
continuous-claude/iteration-9/2026-01-30-a0751e34

Conversation

@TianYuan-Liu
Copy link
Member

  • Gene extended tests (8): Empty transcripts, mixed transcripts, overlapping
    transcripts, calculate_size boundary behavior, strand preservation, Debug trait
  • Region extended tests (9): Special chromosome names, empty chrom, negative/zero
    coordinates, inverted coordinates, very large coordinates, metadata special chars
  • Exon extended tests (5): Exon number, large spans, single base, negative coords
  • Overlap complex tests (7): Region spanning gene, exact exon match, region between
    genes, multiple transcripts, gene-level merging, empty input, negative strand TSS
  • Output special character tests (7): Metadata with tabs/newlines/unicode, empty
    strings, negative distances, header columns, tab separation verification
  • GTF attribute extended tests (7): Semicolon in value, spaces around quotes,
    numeric values, long values, extra attributes, key prefix handling, missing ID
  • find_search_start_index extended tests (8): Exact match, boundary cases, negative
    search, zero search, very large values, single gene, duplicate start positions
  • Candidate extended tests (5): All area types, negative percentages, zero values,
    large coordinates, Debug trait

TianYuan-Liu and others added 2 commits January 30, 2026 02:20
…GTF, and Candidate modules

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

- Gene extended tests (8): Empty transcripts, mixed transcripts, overlapping
  transcripts, calculate_size boundary behavior, strand preservation, Debug trait
- Region extended tests (9): Special chromosome names, empty chrom, negative/zero
  coordinates, inverted coordinates, very large coordinates, metadata special chars
- Exon extended tests (5): Exon number, large spans, single base, negative coords
- Overlap complex tests (7): Region spanning gene, exact exon match, region between
  genes, multiple transcripts, gene-level merging, empty input, negative strand TSS
- Output special character tests (7): Metadata with tabs/newlines/unicode, empty
  strings, negative distances, header columns, tab separation verification
- GTF attribute extended tests (7): Semicolon in value, spaces around quotes,
  numeric values, long values, extra attributes, key prefix handling, missing ID
- find_search_start_index extended tests (8): Exact match, boundary cases, negative
  search, zero search, very large values, single gene, duplicate start positions
- Candidate extended tests (5): All area types, negative percentages, zero values,
  large coordinates, Debug trait
Run cargo fmt to fix formatting issues that were causing CI to fail.

Co-Authored-By: Claude (claude-opus-4-5) <noreply@anthropic.com>
@TianYuan-Liu TianYuan-Liu merged commit 6da6120 into master Jan 30, 2026
1 check passed
@TianYuan-Liu TianYuan-Liu deleted the continuous-claude/iteration-9/2026-01-30-a0751e34 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