bench library

Classes

ExpectError
An annotation that declares an expectation that a Test function will throw an error or complete an async error. [...]
Mock<T>
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

Constants

atLeastOnce → const Matcher
const _TimesMatcher(1)
atMostOnce → const Matcher
const _TimesMatcher(0, 1)
isAssertionError → const Matcher
const _AssertionErrorMatcher()
isStackOverflowError → const Matcher
const _StackOverflowErrorMatcher()
isTimeoutException → const Matcher
const _TimeoutExceptionMatcher()
never → const Matcher
const _TimesMatcher(0, 0)
once → const Matcher
const _TimesMatcher(1, 1)
Setup → const _Setup
An annotation that declares a top-level function to be a setup procedure. [...]
const _Setup()
Teardown → const _Teardown
An annotation that declares a top-level function to be a teardown procedure. [...]
const _Teardown()
twice → const Matcher
const _TimesMatcher(2, 2)

Properties

noop → ([dynamic ]) → Null
final

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

Typedefs

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