weaver.pure
Members list
Packages
Type members
Classlikes
Attributes
- Supertypes
-
trait Helperstrait BaseCatsSuitetrait Provider[IO]trait EffectSuite[IO]trait Heretrait Suite[IO]trait BaseSuiteClassclass Objecttrait Matchableclass AnyShow all
Attributes
- Supertypes
-
trait Serializabletrait Producttrait Equalsclass Objecttrait Matchableclass AnyShow all
Value members
Inherited methods
Used to investigate failures in expect
or assert
statements.
Used to investigate failures in expect
or assert
statements.
Surround a value with a call to clue
to display it on failure.
Attributes
- Inherited from:
- ClueHelpers (hidden)
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
- Example
-
val xs = List("foo", "bar") // success exists(xs)(s => expect.eql("foo", s)
- Inherited from:
- Helpers
Expect macros
Expect macros
Attributes
- Inherited from:
- Helpers
Attributes
- Inherited from:
- Helpers
Attributes
- Inherited from:
- Helpers
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
- Example
-
val xs = List("foo", "bar") // success forEach(xs)(s => expect.eql(3, s.length)
- Inherited from:
- Helpers
Alias for forEach
Alias for forEach
Attributes
- Inherited from:
- Helpers
Checks that a given expression matches a certain pattern; fails otherwise.
Checks that a given expression matches a certain pattern; fails otherwise.
Attributes
- Example
-
matches(Option(4)) { case Some(x) => expect.eql(4, x) }
- Inherited from:
- Helpers
Attributes
- Inherited from:
- Helpers
Attributes
- Inherited from:
- Helpers
Attributes
- Inherited from:
- Helpers
Attributes
- Inherited from:
- Helpers
Checks that an ApplicativeError
(like Either
) is successful
Checks that an ApplicativeError
(like Either
) is successful
Attributes
- Example
-
val res: Either[String, Int] = Right(4) whenSuccess(res) { n => expect.eql(4, n) }
- Inherited from:
- Helpers
Inherited fields
Attributes
- Inherited from:
- Helpers