findAllRequests method

List<RequestVerification> findAllRequests(
  1. String path, {
  2. HttpMethod? method,
})

Implementation

List<RequestVerification> findAllRequests(String path, {HttpMethod? method}) {
  return _requests
      .where((req) => req.path.contains(path) && (method == null || req.method == method))
      .toList();
}