| 222 | } |
| 223 | |
| 224 | void |
| 225 | checkCallTest(bool shouldHaveFailed, bool result, const std::string &error, std::string &expectedError, int &called) |
| 226 | { |
| 227 | CHECK(1 == called); // Init was called. |
| 228 | if (shouldHaveFailed) { |
| 229 | CHECK(false == result); |
| 230 | CHECK(error == expectedError); // Appropriate error was returned. |
| 231 | } else { |
| 232 | CHECK(true == result); // Init successful - returned TS_SUCCESS. |
| 233 | CHECK(error.empty()); // No error was returned. |
| 234 | } |
| 235 | } |
| 236 | |
| 237 | SCENARIO("invoking plugin init", "[plugin][core]") |
| 238 | { |
no test coverage detected