class DiagramsHelper extends AnyRef
Helper class used by code generated by the overriden assert
macro.
- Source
- Diagrams.scala
- Alphabetic
- By Inheritance
- DiagramsHelper
- AnyRef
- Any
- Hide All
- Show All
- Public
- Protected
Instance Constructors
- new DiagramsHelper()
Value Members
- def macroAssert(bool: DiagrammedExpr[Boolean], clue: Any, sourceText: String, pos: Position): Assertion
Assert that the passed in
Bool
istrue
, else fail withTestFailedException
with error message that include a diagram showing expression values.Assert that the passed in
Bool
istrue
, else fail withTestFailedException
with error message that include a diagram showing expression values.- bool
the
Bool
to assert for- clue
optional clue to be included in
TestFailedException
's error message when assertion failed
- def macroAssume(bool: DiagrammedExpr[Boolean], clue: Any, sourceText: String, pos: Position): Assertion
Assume that the passed in
Bool
istrue
, else throwTestCanceledException
with error message that include a diagram showing expression values.Assume that the passed in
Bool
istrue
, else throwTestCanceledException
with error message that include a diagram showing expression values.- bool
the
Bool
to assume for- clue
optional clue to be included in
TestCanceledException
's error message when assertion failed
Deprecated Value Members
- def macroAssert(bool: scalatest.DiagrammedExpr[Boolean], clue: Any, sourceText: String, pos: Position): Assertion
- Annotations
- @deprecated
- Deprecated
This function is deprecated and will be removed in future, please use macroAssert that takes org.scalatest.diagrams.DiagrammedExpr
- def macroAssume(bool: scalatest.DiagrammedExpr[Boolean], clue: Any, sourceText: String, pos: Position): Assertion
- Annotations
- @deprecated
- Deprecated
This function is deprecated and will be removed in future, please use macroAssume that takes org.scalatest.diagrams.DiagrammedExpr