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 Object
trait Matchable
class Any
Self type

Members list

Value members

Concrete methods

def problems(view: AnyRef, expected: Html, args: Seq[Any]): List[String]

Whatever went wrong; empty means all three agree with apply.

Whatever went wrong; empty means all three agree with apply.

Attributes

Source
EntryPoints.scala