verifyAll<T> static method

void verifyAll<T>(
  1. List<T> inputs, {
  2. required String processor(
    1. T item
    ),
  3. Options options = const Options(),
})

Verifies all combinations of inputs for a provided function.

Implementation

static void verifyAll<T>(
  List<T> inputs, {
  required String Function(T item) processor,
  Options options = const Options(),
}) {
  try {
    // Process the combination to get the response
    final response = inputs.map((e) => processor(e));

    final responseString = response.join('\n');

    // Verify the processed response
    verify(responseString, options: options);
  } catch (_) {
    rethrow;
  }
}