MCPcopy Create free account
hub / github.com/boostorg/parser / main

Function main

test/parser_action_with_params.cpp:29–45  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

27BOOST_PARSER_DEFINE_RULES(action_param);
28
29int main()
30{
31 {
32 std::string const str = "abc";
33 auto const result = parse(str, action_param.with(15.0, make_13));
34 BOOST_TEST(result);
35 BOOST_TEST(*result == 15);
36 }
37 {
38 std::string const str = "def";
39 auto const result = parse(str, action_param.with(15.0, make_13));
40 BOOST_TEST(result);
41 BOOST_TEST(*result == 13);
42 }
43
44 return boost::report_errors();
45}

Callers

nothing calls this directly

Calls 2

parseFunction · 0.50
withMethod · 0.45

Tested by

no test coverage detected