Skip to main content

Module coverage_query

Module coverage_query 

Source
Expand description

Language-neutral coverage query operators.

Querying is deliberately separated from the CLI and storage container. This module accepts the frozen analyzed view and owns structural query semantics shared by every language frontend.

Structs§

CoverageAnchor
CoverageArea
Coverage of one directory: what its files have to cover, how much of it is covered, and how much of it each kind of test covers.
CoverageAreaKind
CoverageAreasData
CoverageAreasQueryOptions
CoverageBranchObligation
CoverageCoveringPhase
CoverageCoveringTest
CoverageCoversAnchorsData
CoverageCoversLineData
CoverageCoversQueryOptions
CoverageDecisionCondition
CoverageDecisionDetailData
CoverageDecisionMatch
CoverageDecisionMatchesData
CoverageDecisionQueryOptions
CoverageDecisionTotals
CoverageDiagnostic
CoverageDiffCounts
CoverageDiffData
CoverageDiffDelta
CoverageDiffFile
How much of a comparison falls in one file.
CoverageDiffInputs
What two runs of a comparison had in common. With the same source, a difference between them is not a change in the code: two e2e runs of one commit read “lost: 11 lines, 31 branches” with nothing to say so.
CoverageDiffQueryOptions
CoverageDiffSide
CoverageDimensionQueryOptions
CoverageFileCounts
CoverageFileDecisionRow
A decision with conditions missing, and what each of them is missing.
CoverageFileDecisionsData
CoverageFileDecisionsOptions
CoverageFileDetailData
CoverageFileDetailOptions
CoverageFileGapLine
CoverageFileLimitation
CoverageFileQueryOptions
CoverageFileQueryResult
CoverageFilesData
CoverageGapsData
CoverageHitDetail
CoverageKindGapContext
CoverageKindsData
CoverageLineObligation
CoverageLocation
CoverageMcdcObligation
CoverageMinimizeData
CoverageMinimizeQueryOptions
CoverageMinimizedTest
CoverageMissingCondition
CoverageOtherCoverage
CoverageOtherTest
CoveragePointObligation
CoverageQueryFilters
CoverageRunnersData
CoverageScopeData
CoverageScopeQueryOptions
CoverageSelectedDecision
CoverageSelectedTest
CoverageSummaryData
CoverageSummaryQueryOptions
CoverageTestDecision
CoverageTestDetailData
CoverageTestMatch
CoverageTestMatchesData
CoverageTestPhase
CoverageTestQueryOptions
CoverageTestTotals
CoversCache
What the lines of one call share: the run’s tests, phases and limitations, and each file’s points, decisions and gaps, read once however many lines of the file are asked. One call has one view and one set of filters, so nothing here depends on the line.
DecisionGapTotals
FileDetailSource
What a file’s detail is read from: the run’s lines, points, decisions, limitations and tests, read once and kept by file.
MinimumTestSetResult
ScopeCounts
ScopeDirectory
ScopeGroup
One row of the scope overview: the files of one place that share a status and the reason for it.
TestAttributionCounts
Tests by how completely their coverage is their own.
TestWithoutEvidence
A test that made assertions and has no line, hit or decision to its name.
TestsWithoutEvidenceData
TestsWithoutEvidenceOptions
UnclassifiedSource
The unclassified files of a run by where they are, and the source roots to name if they are the project’s own code: the roots discovery found plus each of those places.

Enums§

CoverageCoversData
CoverageDecisionData
CoverageDimensionQueryData
CoverageFileObligation
CoverageFileQueryData
CoverageTestData
DecisionSort
MinimizeMetric
QueryError

Functions§

coverage_areas_query
Coverage by directory, split by test kind. “Where is the coverage” was the first question after a full run, and answering it took an LCOV export and a script: listings named files only and carried no totals.
coverage_covers_query
coverage_covers_query_cached
coverage_covers_query for one of several lines, reading what the lines share through cache.
coverage_decision_query
coverage_diff_query
coverage_dimension_query
coverage_file_decisions_query
coverage_file_detail_from
One file’s detail from a run already read. options.view is the view the run was read in.
coverage_file_detail_query
coverage_file_query
coverage_minimize_query
coverage_scope_query
coverage_summary_query
coverage_test_query
dimension_for_metric
One metric of a file’s or a directory’s counts; all reads as lines.
minimum_test_set
missing_outcome_words
A condition’s gap in words: which value it never took, or that it never decided alone.
scope_groups
Every scope entry, grouped. 845 entries took five pages to read and an awk to see that 79 of 89 unclassified files were one directory.
tests_without_evidence_query
Every test the run’s summary counts under “made assertions, but Supercov received no source-coverage evidence”. The summary names one of them; 63 tests behind one example could not be followed up.
unclassified_source