io.github.frikit.twirlspec.quality
Members list
Type members
Classlikes
What a page puts on screen that a spec never asked about.
What a page puts on screen that a spec never asked about.
Rules answer "is this page sound". This answers the other question: "did the spec actually look at it". A view can pass every standard while half of it goes unasserted, because rendering a page is not the same as testing it.
Attributes
- Source
- ContentCoverage.scala
- Supertypes
-
class Objecttrait Matchableclass Any
- Self type
-
ContentCoverage.type
Two checks about the spec rather than the page.
Two checks about the spec rather than the page.
assertEverything fails when the page shows something no assertion ever looked at. entryPointsAgree exercises the render, f and ref that Twirl generates and nothing else calls.
Attributes
- Source
- CoverageChecks.scala
- Supertypes
-
trait TwirlSpecDsltrait TwirlMatcherstrait ContentExpectationstrait FormExpectationstrait FramingExpectationsclass Objecttrait Matchableclass AnyShow all
- Known subtypes
Twirl gives every template three entry points besides apply: render for Java callers, f for the curried function form, and ref.
Twirl gives every template three entry points besides apply: render for Java callers, f for the curried function form, and ref.
Nothing in a normal service calls them, so a change to a template's parameters can break them with no test noticing, and they sit in coverage reports as permanently unreached lines. They are reached by reflection here so a spec does not have to spell out each template's arity by hand.
Attributes
- Source
- EntryPoints.scala
- Supertypes
-
class Objecttrait Matchableclass Any
- Self type
-
EntryPoints.type
What a page says about itself in its head.
What a page says about itself in its head.
All page level, so a component's spec is not told it has no charset.
Attributes
- Source
- MetadataStandards.scala
- Supertypes
- Self type
-
MetadataStandards.type
Markup that makes a page slower or shakier than it needs to be.
Markup that makes a page slower or shakier than it needs to be.
Everything here is a warning. None of it is wrong, and a template can have a good reason for any of it; they are worth seeing rather than worth failing.
Attributes
- Source
- PerformanceStandards.scala
- Supertypes
- Self type
-
PerformanceStandards.type
Adds the semantic, performance and metadata rules to every display(...).
Adds the semantic, performance and metadata rules to every display(...).
Composes with the other rule modules, so with WcagChecks with QualityChecks runs both.
Attributes
- Source
- QualityChecks.scala
- Supertypes
-
trait TwirlSpecDsltrait TwirlMatcherstrait ContentExpectationstrait FormExpectationstrait FramingExpectationsclass Objecttrait Matchableclass AnyShow all
- Known subtypes
Markup that works but says the wrong thing about its own structure.
Markup that works but says the wrong thing about its own structure.
Attributes
- Source
- SemanticStandards.scala
- Supertypes
- Self type
-
SemanticStandards.type
Twirl's generated render, f and ref agree with apply, in every template under a directory: one Twirl compiles from, such as app or src/main/twirl, or the views directory inside it.
Twirl's generated render, f and ref agree with apply, in every template under a directory: one Twirl compiles from, such as app or src/main/twirl, or the views directory inside it.
A template's arguments are the first stand-in of each type render declares, so one taking a type with no stand-in fails, by name, rather than being skipped. Form[A] and Form[B] are one class at runtime, so a template reading its form's value can be handed the wrong one: forTemplate gives it arguments of its own.
Attributes
- Source
- TemplateEntryPoints.scala
- Supertypes
-
trait Matcher[Path]trait Path => MatchResultclass Objecttrait Matchableclass Any