Skip to content

Comments

feat: Add 80 new unit tests for overlap, output, error types, GTF, config, and BED modules#11

Closed
TianYuan-Liu wants to merge 2 commits intomasterfrom
continuous-claude/iteration-10/2026-01-30-35fb50c2
Closed

feat: Add 80 new unit tests for overlap, output, error types, GTF, config, and BED modules#11
TianYuan-Liu wants to merge 2 commits intomasterfrom
continuous-claude/iteration-10/2026-01-30-35fb50c2

Conversation

@TianYuan-Liu
Copy link
Member

  • match_regions_to_genes tests (8): Empty input handling, multiple regions
    with single gene, region order preservation, last_index optimization,
    large gene lengths, negative strand genes, and multiple overlapping genes

  • process_candidates_for_output gene level tests (7): Single/multiple
    transcript handling, area merging, gene filtering, and exon number merging

  • Error type display tests (9): Verify Display and std::error::Error trait
    implementations for ParseStrandError, ParseAreaError, and ParseReportLevelError,
    plus Clone/Eq trait verification

  • Overlap edge case tests (12): Exon boundary conditions, intron regions,
    single base exons, strand-specific upstream/downstream, TTS scenarios,
    many-exon genes, and distance threshold handling

  • GTF extract_attribute tests (8): Attributes with equals signs, numbers-only
    values, empty values, dots/underscores/hyphens, order independence, and
    missing trailing semicolons

  • Config extended tests (10): new()/default() equivalence, Clone/Debug traits,
    max_lookback_distance with various parameter combinations, parse_rules
    order preservation, and set_distance_kb edge cases

  • TssExonInfo/TtsExonInfo tests (4): Field access and negative/zero values

  • Transcript level processing tests (4): Filtering by transcript, multiple
    transcripts, and percentage threshold filtering

  • BED reader extended tests (5): Very long lines, max metadata columns,
    scientific notation handling, Windows line endings, and mixed whitespace

  • check_tss/check_tts edge case tests (13): Single bp regions, exact
    boundary conditions, percentage calculations, zero distances, large zones,
    and spanning multiple zones

Unit tests increased from 282 to 362 tests total.

TianYuan-Liu and others added 2 commits January 30, 2026 02:29
…nfig, and BED modules

Add comprehensive test coverage across multiple modules:

- match_regions_to_genes tests (8): Empty input handling, multiple regions
  with single gene, region order preservation, last_index optimization,
  large gene lengths, negative strand genes, and multiple overlapping genes

- process_candidates_for_output gene level tests (7): Single/multiple
  transcript handling, area merging, gene filtering, and exon number merging

- Error type display tests (9): Verify Display and std::error::Error trait
  implementations for ParseStrandError, ParseAreaError, and ParseReportLevelError,
  plus Clone/Eq trait verification

- Overlap edge case tests (12): Exon boundary conditions, intron regions,
  single base exons, strand-specific upstream/downstream, TTS scenarios,
  many-exon genes, and distance threshold handling

- GTF extract_attribute tests (8): Attributes with equals signs, numbers-only
  values, empty values, dots/underscores/hyphens, order independence, and
  missing trailing semicolons

- Config extended tests (10): new()/default() equivalence, Clone/Debug traits,
  max_lookback_distance with various parameter combinations, parse_rules
  order preservation, and set_distance_kb edge cases

- TssExonInfo/TtsExonInfo tests (4): Field access and negative/zero values

- Transcript level processing tests (4): Filtering by transcript, multiple
  transcripts, and percentage threshold filtering

- BED reader extended tests (5): Very long lines, max metadata columns,
  scientific notation handling, Windows line endings, and mixed whitespace

- check_tss/check_tts edge case tests (13): Single bp regions, exact
  boundary conditions, percentage calculations, zero distances, large zones,
  and spanning multiple zones

Unit tests increased from 282 to 362 tests total.
Format write! and writeln! macro calls in test_bed_reader_windows_line_endings
and test_bed_reader_multiple_reads_until_eof to pass cargo fmt --check.

Co-Authored-By: Claude (claude-opus-4-5) <noreply@anthropic.com>
@TianYuan-Liu TianYuan-Liu deleted the continuous-claude/iteration-10/2026-01-30-35fb50c2 branch January 30, 2026 01:31
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