CoverageRegistry
io.github.frikit.twirlspec.page.CoverageRegistry
object CoverageRegistry
Remembers which elements a spec's assertions actually looked at.
A spec renders the same page many times over — once per test — so the record is kept per coverage group rather than per page instance. A page rendered through the DSL belongs to its spec and, within it, to the renders that produce exactly its markup, unless the spec names a group with coveredAs. The key is spec#group, so a spec's records can be dropped together. A page built directly belongs to no spec and keeps its record on itself, so it never appears here.
Attributes
- Source
- CoverageRegistry.scala
- Graph
-
- Supertypes
-
class Objecttrait Matchableclass Any
- Self type
-
CoverageRegistry.type
Members list
In this article