| 521 | // Pull the response values into a map. |
| 522 | hashmap<string, double> responseValues; |
| 523 | foreachpair (const string& key, |
| 524 | const JSON::Value& value, |
| 525 | responseJSON->values) { |
| 526 | if (value.is<JSON::Number>()) { |
| 527 | // "test/counter/count" is an integer, everything else is a double. |
| 528 | JSON::Number number = value.as<JSON::Number>(); |
| 529 | responseValues[key] = number.as<double>(); |
| 530 | } |
| 531 | } |
| 532 | |
| 533 | // Ensure the expected keys are in the response and that the values match |
| 534 | // expectations. |
nothing calls this directly
no outgoing calls
no test coverage detected