testWithRandom method

  1. @isTest
void testWithRandom(
  1. String description,
  2. Tester2WithRandom<First, Second> body, {
  3. String? testOn,
  4. Timeout? timeout,
  5. dynamic skip,
  6. dynamic tags,
  7. Map<String, dynamic>? onPlatform,
  8. int? retry,
})

Implementation

@isTest
void testWithRandom(
  String description,
  Tester2WithRandom<First, Second> body, {
  String? testOn,
  test_package.Timeout? timeout,
  dynamic skip,
  dynamic tags,
  Map<String, dynamic>? onPlatform,
  int? retry,
}) {
  final random = explore.random.nextRandom();
  test(
    description,
    (a, b) => body(a, b, random.nextRandom()),
    testOn: testOn,
    timeout: timeout,
    skip: skip,
    tags: tags,
    onPlatform: onPlatform,
    retry: retry,
  );
}