honey library Null safety

Classes

EvaluatedExpr
A honey expression that has been evaluated to either a value, list or widget.
EvaluatedListExpr
A list of evaluated expressions.
Expr
Superclass of all Honey expressions
FunctionExpr
Function expressions are the only expressions that can contain logic. You can either use built-in functions or create your own.
HoneyContext
This class presents a set of methods that can be used by Honey functions to interact with the application under test. It also allows evaluating expressions and accessing the values of variables.
HoneyWidgetsBinding
Flutter widgets binding for Honey tests. Only use this binding during tests.
ListExpr
A list of un-evaluated expressions.
SemanticsButton
A widget that annotates the widget tree with a description of the meaning of the widgets and makes sure it is recognized as a button.
SemanticsCheckbox
A widget that annotates the widget tree with a description of the meaning of the widgets and makes sure it is recognized as a checkbox.
SemanticsHeader
A widget that annotates the widget tree with a description of the meaning of the widgets and makes sure it is recognized as a header.
A widget that annotates the widget tree with a description of the meaning of the widgets and makes sure it is recognized as a link.
SemanticsSlider
A widget that annotates the widget tree with a description of the meaning of the widgets and makes sure it is recognized as a slider.
SemanticsSwitch
A widget that annotates the widget tree with a description of the meaning of the widgets and makes sure it is recognized as a switch.
SemanticsWidget
ValueExpr
A value expression. Honey only knows a single type of value: String. It converts it to the appropriate type when needed.
WidgetExpr

Functions

eList(List<EvaluatedExpr> list, {bool retry = false}) EvaluatedListExpr
Shortcut for creating an EvaluatedListExpr.
empty({bool retry = false}) ValueExpr
Shortcut for creating an empty ValueExpr.
func(F function, Map<String, Expr> params) FunctionExpr
Shortcut for creating a FunctionExpr.
list(List<Expr> list) ListExpr
Shortcut for creating a ListExpr.
val(dynamic value, {bool retry = false}) ValueExpr
Shortcut for creating a ValueExpr from the given value.

Enums

F
Builtin Honey Functions
HoneyMode
The Honey test mode.
Property

Typedefs

HoneyFunction = Future<EvaluatedExpr> Function(HoneyContext ctx, Map<String, Expr> params)
Function type for custom functions.

Exceptions / Errors

HoneyError
The only error that may be thrown by Honey functions if they don't contain a bug.