| 83 | } |
| 84 | |
| 85 | Status TestFlightServer::ListFlights(const ServerCallContext& context, |
| 86 | const Criteria* criteria, |
| 87 | std::unique_ptr<FlightListing>* listings) { |
| 88 | std::vector<FlightInfo> flights = ExampleFlightInfo(); |
| 89 | if (criteria && criteria->expression != "") { |
| 90 | // For test purposes, if we get criteria, return no results |
| 91 | flights.clear(); |
| 92 | } |
| 93 | *listings = std::make_unique<SimpleFlightListing>(flights); |
| 94 | return Status::OK(); |
| 95 | } |
| 96 | |
| 97 | Status TestFlightServer::GetFlightInfo(const ServerCallContext& context, |
| 98 | const FlightDescriptor& request, |
nothing calls this directly
no test coverage detected