feat: Add 56 new unit tests for Gene, Region, Exon, Overlap, Output, GTF, and Candidate modules#10
Merged
TianYuan-Liu merged 2 commits intomasterfrom Jan 30, 2026
Conversation
…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>
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.
transcripts, calculate_size boundary behavior, strand preservation, Debug trait
coordinates, inverted coordinates, very large coordinates, metadata special chars
genes, multiple transcripts, gene-level merging, empty input, negative strand TSS
strings, negative distances, header columns, tab separation verification
numeric values, long values, extra attributes, key prefix handling, missing ID
search, zero search, very large values, single gene, duplicate start positions
large coordinates, Debug trait