Skip to content

PropTuple2Ops<A, B>

extension PropTuple2Ops<A, B> on Record

Methods

forAll() extension

void forAll(
  String description,
  FutureOr<void> Function(A, B) testBody, {
  int? numTests,
  int? seed,
  String? testOn,
  Timeout? timeout,
  dynamic skip,
  dynamic tags,
  Map<String, dynamic>? onPlatform,
  int? retry,
})

Available on Record, provided by the PropTuple2Ops<A, B> extension

Implementation
dart
@isTest
void forAll(
  String description,
  Function2<A, B, FutureOr<void>> testBody, {
  int? numTests,
  int? seed,
  String? testOn,
  Timeout? timeout,
  dynamic skip,
  dynamic tags,
  Map<String, dynamic>? onPlatform,
  int? retry,
}) => _forAll<(A, B)>(
  description,
  ($1, $2).tupled,
  testBody.tupled,
  numTests: numTests,
  seed: seed,
  testOn: testOn,
  timeout: timeout,
  skip: skip,
  tags: tags,
  onPlatform: onPlatform,
  retry: retry,
);