Line

You are reading the unreleased docs (next). See latest (v0.9)

ui/client/features/tests/domain/Coverage

Pure (DOMAIN-001): the words the screen uses for scenario coverage.

Cockpit client (features), next. Source: ui/client/features/tests/domain/Coverage.ts.

Functions#

coverageSummary()#

coverageSummary(data): string

Defined in: ui/client/features/tests/domain/Coverage.ts:6

"9 scenarios · 7 with a generated test · 2 of your own", plus " · story: 3/5 matched" when the feature has a story.md -- omitted entirely otherwise, per design 9.1's "story-dependent UI only when a story.md exists".

Parameters#

data

TestsListing

Returns#

string


rowForFile()#

rowForFile(rows, file): CoverageRow | null

Defined in: ui/client/features/tests/domain/Coverage.ts:21

The scenario a generated test covers, if the flow still has it.

Parameters#

rows

CoverageRow[]

file

string

Returns#

CoverageRow | null


storyCoverageSummary()#

storyCoverageSummary(story): string

Defined in: ui/client/features/tests/domain/Coverage.ts:14

"story: 3/5 matched" (design 9.8's "in sync (3/5 matched)" phrasing) -- '' when there is no story.md.

Parameters#

story

StoryCoverage

Returns#

string