Skip to content

PropOps<A>

extension PropOps<A> on Gen<A>

Methods

forAll() extension

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

Available on Gen<A>, provided by the PropOps<A> extension

Implementation
dart
@isTest
void forAll(
  String description,
  Function1<A, FutureOr<void>> testBody, {
  int? numTests,
  int? seed,
  String? testOn,
  Timeout? timeout,
  dynamic skip,
  dynamic tags,
  Map<String, dynamic>? onPlatform,
  int? retry,
}) => _forAll(
  description,
  this,
  testBody,
  numTests: numTests,
  seed: seed,
  testOn: testOn,
  timeout: timeout,
  skip: skip,
  tags: tags,
  onPlatform: onPlatform,
  retry: retry,
);