cake_flutter library
Classes
- AssertFailure
- Returned after an Expect has failed
- AssertNeutral
- Returned if an Expect is never ran or is inconclusive.
- AssertPass
- Returned after an Expect has succeeded.
- AssertResult
- CallArgs
-
Context<
ExpectedType> - Context is how information can be passed from stage to stage.
-
ContextCreator<
C extends Context> -
Contextual<
ContextualContext extends Context> - Contextual is the base class for all Cake testing objects, such as Test, Group, and TestRunner.
- DisplayableErrorWidget
-
Expect<
ExpectedType> -
Expects are used in
Test.assertions
to check if an assertion is true or false. - FlutterContext
- FlutterContextController
-
FlutterExpect<
ExpectedType extends Widget> - FlutterMockCollection
- FlutterTestOptions
- FlutterTestRunner
-
Group<
GroupContext extends Context> - Create a Group with a Custom Context
-
GroupOf<
ExpectedType> -
Create a Group with a Default Context of an
ExpectedType
- IndexOptions
- MockableFunction
-
MockableFunctionOf<
T> -
MockBase<
T> - MockBase behaves as a template for all Mock implementations. The default implementation in Cake is MockableFunction and MockableFunctionOf. But you can create your own Mocks by extending this class.
-
MockCollection<
T extends MockBase> -
MockExpect<
Mock extends MockBase> - RootWidget
- RootWidgetConfiguration
- Search
- SetupSettings
- Snapshot
- SnapshotExpect
- SnapshotOptions
-
Test<
TestContext extends Context> - Create a Test with a Custom Context
-
TestElementWrapper<
W extends Widget> -
TestElementWrapperCollection<
W extends Widget> - TestMessage
- Outputs a message to the console
-
TestOf<
ExpectedType> -
Create a Test with a Default Context of an
ExpectedType
- TestOptions
- Options are an inheritable object that can be set on a TestRunner, Group, or Test. Any child settings will override parent settings, if set.
-
TestRunner<
TestRunnerContext extends Context> - Create a TestRunner with a Custom Context
- TestRunnerDefault
-
Create a TestRunner with a Default Context with no or dynamic
ExpectedType
-
TestRunnerOf<
ExpectedType> -
Create a TestRunner with a Default Context of an
ExpectedType
- WidgetTree
-
WidgetType<
T extends Widget>
Enums
Mixins
- Result
-
For better formatting when output by the
Printer
- TestElementActions
Typedefs
- OnComplete = void Function(String message)
- Callback for when all tests have finished within a test runner
-
SnapshotWidgetCallback
= Future<
Snapshot?> Function({bool? createCopyIfMismatch, bool? createIfMissing, String? directory, String? fileName, String? fontFamily, bool? includeSetupWidgets, String? mismatchDirectory, String? mismatchFileName, bool? overwriteGolden, Widget? snapshotWidget, SetupSettings? snapshotWidgetSetup, bool? warnIfInvalid})