EntryPoints
io.github.frikit.twirlspec.quality.EntryPoints
object EntryPoints
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
- Graph
-
- Supertypes
-
class Objecttrait Matchableclass Any
- Self type
-
EntryPoints.type
Members list
In this article