MCPcopy Create free account
hub / github.com/EndstoneMC/endstone / TEST_F

Function TEST_F

tests/test_command_usage_parser.cpp:35–44  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

33};
34
35TEST_F(ParserTest, ParseCommandWithoutParameters)
36{
37 CommandUsageParser parser("/command");
38 auto result = parser.parse();
39 ASSERT_EQ(result.has_value(), true);
40
41 const auto &[command_name, parameters] = result.value();
42 ASSERT_EQ(command_name, "command");
43 ASSERT_EQ(parameters.size(), 0);
44}
45
46TEST_F(ParserTest, ParseCommandWithMandatoryParameter)
47{

Callers

nothing calls this directly

Calls 5

parseMethod · 0.80
valueMethod · 0.80
sizeMethod · 0.45
emptyMethod · 0.45
errorMethod · 0.45

Tested by

no test coverage detected