MCPcopy Create free account
hub / github.com/WasmEdge/WasmEdge / resolve

Method resolve

test/spec/spectest.cpp:398–409  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

396}
397
398std::tuple<std::string_view, WasmEdge::Configure, std::string>
399SpecTest::resolve(std::string_view Params) const {
400 const auto Pos = Params.find_last_of(' ');
401 const std::string_view ProposalPath = Params.substr(0, Pos);
402 const auto &MatchedProposal = *std::find_if(
403 std::begin(TestsuiteProposals), std::end(TestsuiteProposals),
404 [&ProposalPath](const auto &Proposal) {
405 return Proposal.Path == ProposalPath;
406 });
407 return std::tuple<std::string_view, WasmEdge::Configure, std::string>{
408 MatchedProposal.Path, MatchedProposal.Conf, Params.substr(Pos + 1)};
409}
410
411bool SpecTest::compare(const std::pair<std::string, std::string> &Expected,
412 const std::pair<ValVariant, ValType> &Got) const {

Callers 5

TEST_PFunction · 0.80
TEST_PFunction · 0.80
TEST_PFunction · 0.80
TEST_PFunction · 0.80
TEST_PFunction · 0.80

Calls 1

substrMethod · 0.80

Tested by

no test coverage detected