Constants

atLeastOnce → Matcher

const _TimesMatcher(1)
atMostOnce → Matcher

const _TimesMatcher(0, 1)
isAssertionError → Matcher

const _AssertionErrorMatcher()
isStackOverflowError → Matcher

const _StackOverflowErrorMatcher()
isTimeoutException → Matcher

const _TimeoutExceptionMatcher()
never → Matcher

const _TimesMatcher(0, 0)
once → Matcher

const _TimesMatcher(1, 1)
Setup → dynamic

An annotation that declares a top-level function to be a setup procedure.

const _Setup()
Teardown → dynamic

An annotation that declares a top-level function to be a teardown procedure.

const _Teardown()
twice → Matcher

const _TimesMatcher(2, 2)

Typedefs

MockGetter() → dynamic

MockMethod(List positionalArgs, Map<Symbol, dynamic> namedArgs) → dynamic

MockSetter(dynamic) → dynamic

Properties

noop → dynamic

read-only

Functions

atLeast(int count) → Matcher

atMost(int count) → Matcher

exactly(int count) → Matcher

expectDone(Stream s) → dynamic

expectNEvents(Stream s, int n) → dynamic

expectNoEvents(Stream s) → dynamic

expectOneEvent(Stream s) → dynamic

expectThen(Future f) → dynamic

expectTwoEvents(Stream s) → dynamic

reflectTests({Duration timeout: const Duration(seconds: 30), MirrorSystem mirrorSystem, TestDriver testDriver}) → void

Classes

ExpectError

An annotation that declares an expectation that a Test function will throw an error or complete an async error.

Mock

Skip

An annotation that declares a test function shall be skipped by a TestDriver.

Test

An annotation that declares a top-level function to be a test case.

TestDriver

TestGroup

An annotation that declares a library to contain a group of Test functions.

TestRun

The context of a single run of a TestGroup.

UnittestDriver