feat: Add 80 new unit tests for extended coverage across all modules#8
Closed
TianYuan-Liu wants to merge 2 commits intomasterfrom
Closed
feat: Add 80 new unit tests for extended coverage across all modules#8TianYuan-Liu wants to merge 2 commits intomasterfrom
TianYuan-Liu wants to merge 2 commits intomasterfrom
Conversation
Add comprehensive test coverage for edge cases and boundary conditions across TSS, TTS, rules, overlap, GTF parser, BED parser, types, and config modules. Tests cover: - TSS extended tests (8): 1bp regions, boundary conditions, multi-zone spanning, negative strand handling, zero-distance edge cases, percentage calculation accuracy - TTS extended tests (7): 1bp regions, boundary conditions, negative strand downstream, large TTS regions, percentage accuracy - Rules extended tests (9): empty candidates, no rules, area threshold filtering, multiple groups, transcript selection edge cases, merge logic with different exon numbers - Overlap extended tests (14): binary search indexing, no genes, gene distance thresholds, exact/intron/partial overlaps, negative strand first exon, report level processing (exon/transcript/gene) - GTF parser extended tests (9): file not found, comment-only files, mixed features, invalid strand filtering, multi-transcript genes, max length calculation, exon numbering for both strands, custom tags - BED parser extended tests (11): file not found, empty/whitespace files, browser/track headers, BED12 format, chunked reading, header boundaries, negative/large coordinates - Types extended tests (13): zero/single-base exons, large coordinates, transcript/gene size calculations, exon renumbering, region edge cases, unicode chromosome names, negative values - Config extended tests (12): max lookback calculations with various largest values, distance setting edge cases, rule parsing validation, default value verification Total test count increased from 168 to 248 unit tests (303 total with library tests).
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.
across TSS, TTS, rules, overlap, GTF parser, BED parser, types, and
config modules. Tests cover:
spanning, negative strand handling, zero-distance edge cases,
percentage calculation accuracy
strand downstream, large TTS regions, percentage accuracy
filtering, multiple groups, transcript selection edge cases, merge
logic with different exon numbers
distance thresholds, exact/intron/partial overlaps, negative strand
first exon, report level processing (exon/transcript/gene)
mixed features, invalid strand filtering, multi-transcript genes,
max length calculation, exon numbering for both strands, custom tags
browser/track headers, BED12 format, chunked reading, header boundaries,
negative/large coordinates
transcript/gene size calculations, exon renumbering, region edge cases,
unicode chromosome names, negative values
largest values, distance setting edge cases, rule parsing validation,
default value verification
Total test count increased from 168 to 248 unit tests (303 total with
library tests).