| 33 | }; |
| 34 | |
| 35 | TEST_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 | |
| 46 | TEST_F(ParserTest, ParseCommandWithMandatoryParameter) |
| 47 | { |