MCPcopy Create free account
hub / github.com/apache/trafficserver / checkCallTest

Function checkCallTest

src/proxy/http/remap/unit-tests/test_RemapPlugin.cc:224–235  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

222}
223
224void
225checkCallTest(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
237SCENARIO("invoking plugin init", "[plugin][core]")
238{

Callers 1

Calls 1

emptyMethod · 0.45

Tested by

no test coverage detected