yak_test library

Extensions

MoreOrLessEqualsDurationX on Duration?
mirrors flutte_test matcher MoreOrLessEquals (but typesafe)
MoreOrLessEqualsMaybeIntX on num?
builds on top of MoreOrLessEqualsNumX to allow nullable
MoreOrLessEqualsNumX on num
mirrors flutte_test matcher MoreOrLessEquals (but typesafe)
ResultNullaryAsyncTestX on ResultNullaryAsync<T>
an extension that generates a basic set of tests for ResultNullaryAsync
ResultNullaryTestX on ResultNullary<T>
an extension that generates a basic set of tests for ResultNullary
ResultUnaryAsyncTestX on ResultUnaryAsync<T, S>
an extension that generates a basic set of tests for ResultUnaryAsync
ResultUnaryTestX on ResultUnary<T, S>
an extension that generates a basic set of tests for ResultUnary

Constants

precisionErrorTolerance → const double
the tollerance for moreOrLesEquals

Functions

constructorTester<T>(Nullary<T> tester) → void
ensure coverage of a class contructor
equalityTest<T>(Nullary<T> tester, Nullary<T> other) → void
ensure tester over deep equality

Typedefs

ResultNullaryAsyncTest<T> = void Function({NullaryAsync<T> example, String name})
a typedef for a ResultNullary test function
ResultNullaryTest<T> = void Function({Nullary<T> example, String name})
a typedef for a ResultNullary test function
ResultUnaryAsyncTest<T, S> = void Function({required UnaryAsync<T, S> example, required String name, required Nullary<S> seed})
a typedef for a ResultUnaryAsync test function
ResultUnaryTest<T, S> = void Function({required Unary<T, S> example, required String name, required Nullary<S> seed})
a typedef for a ResultUnary test function