MCPcopy Create free account
hub / github.com/cucumber/cucumber-cpp / TEST

Function TEST

tests/integration/WireProtocolTest.cpp:346–355  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

344 */
345
346TEST(WireCommandsTest, succesfulInvokeReturnsSuccess) {
347 MockCukeEngine engine;
348 InvokeCommand invokeCommand(
349 "x", CukeEngine::invoke_args_type(), CukeEngine::invoke_table_type()
350 );
351 EXPECT_CALL(engine, invokeStep(_, _, _)).Times(1);
352
353 std::shared_ptr<const WireResponse> response(invokeCommand.run(engine));
354 EXPECT_PTRTYPE(SuccessResponse, response.get());
355}
356
357TEST(WireCommandsTest, throwingFailureInvokeReturnsFailure) {
358 MockCukeEngine engine;

Callers

nothing calls this directly

Calls 2

getMethod · 0.80
runMethod · 0.45

Tested by

no test coverage detected