Helpers

weaver.Expectations$.Helpers$
See theHelpers companion trait
object Helpers extends Helpers

Attributes

Companion:
trait
Graph
Supertypes
trait Helpers
class Object
trait Matchable
class Any
Self type
Helpers.type

Members list

Concise view

Type members

Inherited classlikes

implicit class StringOps(str: String)

Attributes

Inherited from:
Helpers
Graph
Supertypes
class Object
trait Matchable
class Any

Value members

Inherited methods

Attributes

Inherited from:
Helpers
def exists[L[_], A](la: L[A])(f: A => Expectations)(implicit foldable: Foldable[L], pos: SourceLocation): Expectations

Checks that an assertion is true for at least one element in a foldable. Fails if the foldable is empty.

Checks that an assertion is true for at least one element in a foldable. Fails if the foldable is empty.

Attributes

Inherited from:
Helpers

Expect macros

Expect macros

Attributes

Inherited from:
Helpers
def fail[A](hint: String)(implicit pos: SourceLocation): A => Expectations

Attributes

Inherited from:
Helpers
def failure(hint: String)(implicit pos: SourceLocation): Expectations

Attributes

Inherited from:
Helpers
def forEach[L[_], A](la: L[A])(f: A => Expectations)(implicit L: Foldable[L]): Expectations

Checks that an assertion is true for all elements in a foldable. Succeeds if the foldable is empty.

Checks that an assertion is true for all elements in a foldable. Succeeds if the foldable is empty.

Attributes

Inherited from:
Helpers
def inEach[L[_], A](la: L[A])(f: A => Expectations)(implicit L: Foldable[L]): Expectations

Alias to forall

Alias to forall

Attributes

Inherited from:
Helpers
def not(assertion: Expectations)(implicit pos: SourceLocation): Expectations

Attributes

Inherited from:
Helpers
def succeed[A]: A => Expectations

Attributes

Inherited from:
Helpers
def verify(condition: Boolean)(implicit pos: SourceLocation): Expectations

Attributes

Inherited from:
Helpers
def verify(condition: Boolean, hint: String)(implicit pos: SourceLocation): Expectations

Attributes

Inherited from:
Helpers

Inherited fields

Attributes

Inherited from:
Helpers

Implicits

Inherited implicits

final implicit def StringOps(str: String): StringOps

Attributes

Inherited from:
Helpers