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

Function InvokeDecoder

src/connectors/wire/WireProtocol.cpp:142–150  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

140}
141
142std::shared_ptr<WireCommand> InvokeDecoder(const json& jsonArgs) {
143 const auto& invokeParams = jsonArgs.get<json::object_t>();
144
145 CukeEngine::invoke_args_type args;
146 CukeEngine::invoke_table_type tableArg;
147 const std::string& id = invokeParams.at("id");
148 fillInvokeArgs(invokeParams, args, tableArg);
149 return std::make_shared<InvokeCommand>(id, args, tableArg);
150}
151
152std::shared_ptr<WireCommand> SnippetTextDecoder(const json& jsonArgs) {
153 const auto& snippetTextArgs = jsonArgs.get<json::object_t>();

Callers

nothing calls this directly

Calls 1

fillInvokeArgsFunction · 0.85

Tested by

no test coverage detected