execute method

  1. @override
void execute()
override

execute is overridden to wrap action in a function so that exception can be caught and matched.

Implementation

@override
void execute() {
  test(
    description,
    () => expect(
      () => action?.call(input),
      matcher,
    ),
  );
}