Violation

io.github.frikit.twirlspec.expect.Violation
See theViolation companion class
object Violation

Ways to build the common violations.

Attributes

Companion
class
Source
Violation.scala
Graph
Supertypes
trait Product
trait Mirror
class Object
trait Matchable
class Any
Self type
Violation.type

Members list

Type members

Inherited and Abstract types

type MirroredElemLabels <: Tuple

The names of the product elements

The names of the product elements

Attributes

Inherited from:
Mirror
Source
Mirror.scala
type MirroredLabel <: String

The name of the type

The name of the type

Attributes

Inherited from:
Mirror
Source
Mirror.scala

Value members

Concrete methods

def apply(rule: String, message: String): Violation

A violation with only a rule and a message.

A violation with only a rule and a message.

Attributes

Source
Violation.scala
def mismatch(rule: String, expected: String, actual: String, message: String = ...): Violation

The standard "expected X but got Y" violation.

The standard "expected X but got Y" violation.

Attributes

Source
Violation.scala
def missing(rule: String, selector: String, message: String = ...): Violation

Nothing matched a selector.

Nothing matched a selector.

Attributes

Source
Violation.scala