ParserLaws

io.circe.testing.ParserLaws
case class ParserLaws[P <: Parser](parser: P)

Attributes

Source:
ParserTests.scala
Graph
Supertypes
trait Product
trait Equals
class Object
trait Matchable
class Any

Members list

Concise view

Value members

Concrete methods

def decodingAccumulatingRoundTrip[A](json: Json)(encode: Json => A, decode: P => A => ValidatedNel[Error, Json]): IsEq[ValidatedNel[Error, Json]]

Attributes

Source:
ParserTests.scala
def decodingRoundTrip[A](json: Json)(encode: Json => A, decode: P => A => Either[Error, Json]): IsEq[Either[Error, Json]]

Attributes

Source:
ParserTests.scala
def parsingRoundTrip[A](json: Json)(encode: Json => A, decode: P => A => Either[ParsingFailure, Json]): IsEq[Either[ParsingFailure, Json]]

Attributes

Source:
ParserTests.scala

Inherited methods

Attributes

Inherited from:
Product

Attributes

Inherited from:
Product