StructurallyEqual

scala.meta.testkit.StructurallyEqual

Attributes

Graph
Supertypes
class Object
trait Matchable
class Any
Self type

Members list

Value members

Concrete methods

def apply(a: Tree, b: Tree): Either[AnyDiff, Unit]

Test if two trees are structurally equal.

Test if two trees are structurally equal.

Attributes

Returns
Left(errorMessage with minimal diff)

if trees are not structurally different, otherwise

Right(Unit)

. To convert into exception with meaningful error message, use

val Right(_) = StructurallyEqual(a, b)