Specification coverage

Copy Markdown View Source

A row is "tested" when an ExUnit example or a samtools comparison in this tree exercises that behaviour. "Partial" means the happy path and some malformed inputs are tested, and the gaps are named in docs/compatibility.md. Nothing here is a conformance certificate.

AreaStatusWhere it is checked
Flag bits 0x1–0x800, unknown bits preservedTestedBAM.Flags doctests, test/bam/stage0_test.exs
CIGAR word codec and reference/query lengthsTestedBAM.Cigar doctests
Zero-reference CIGAR counts as length 1 for binning and end_posTestedstage0_test.exs, BAM.Alignment doctests
Sequence nybbles =ACMGRSVTWYHKDBNTestedBAM.Sequence doctests
reg2bin / reg2bins at level edges, including 2^29TestedBAM.Index.Bin doctests
SAM region strings, including a single coordinate and a whole referenceTestedBAM.SAM.region/1 doctests
BGZF member, BC/BSIZE, CRC32, ISIZE, EOF block, truncated member, exact-size readTestedtest/bam/bgzf_test.exs
Virtual offset pack and splitTestedBAM.BGZF doctests
BAM magic, header text, reference dictionary, hostile l_textTestedtest/bam/round_trip_test.exs
BAM.info/1 does not read a later alignment memberTestedcounting source in round_trip_test.exs
Alignment core, CIGAR, sequence, quality, tagsTestedround trip and samtools view
Record split across BGZF membersTestedround_trip_test.exs
Strict raise and permissive {:error, _} when block_size is too smallTestedround_trip_test.exs
Missing BGZF terminatorTestedround_trip_test.exs
Stream laziness and early halt closes the sourceTestedtracking source in round_trip_test.exs
Reference and flag filtersTestedround_trip_test.exs
Float tag raw bytesTestedround_trip_test.exs
BAI encode/decode and region edgesTestedindex_query_test.exs, round_trip_test.exs, samtools view
CSI encode/decode and a region queryTestedround_trip_test.exs
Reference longer than 512 Mbp with only a BAITested:needs_csi in index_query_test.exs
Malformed index magicTestedindex_query_test.exs
Unsorted index inputTestedround_trip_test.exs
SAM parse and formatTestedround_trip_test.exs
Writer output accepted by samtools quickcheck and samtools viewTested on samtools 1.25test/bam/samtools_test.exs
Interval edges against samtools viewTested on samtools 1.25chr1:1-4, chr1:5-5, chr1:11-12, chr2
Generated alignment round tripTestedtest/bam/fuzz_test.exs, 20 runs
One-byte mutations do not crash past %BAM.Error{}Testedfuzz_test.exs, 25 runs
Long CIGAR CG tagUnsupported—
CRAMUnsupported—
Cloud or HTTP sourcesUnsupported—
Duplicate reference namesUnsupportednot rejected
Parallel BGZF inflateUnsupportednot implemented
Full samtools command surfaceUnsupportedonly view, index, and quickcheck were used as oracles