| 18 | char *argv[max_args]; |
| 19 | |
| 20 | void read_cmd(string cmd) { |
| 21 | //reset to default |
| 22 | argc = 0; |
| 23 | param = SvmParam(); |
| 24 | |
| 25 | //convert command line to argc and argv |
| 26 | char *p2 = strtok(const_cast<char *>(cmd.c_str()), " "); |
| 27 | while (p2 && argc < max_args) { |
| 28 | argv[argc++] = p2; |
| 29 | p2 = strtok(NULL, " "); |
| 30 | } |
| 31 | //parse command |
| 32 | cmdParser.parse_command_line(argc, argv); |
| 33 | } |
| 34 | }; |
| 35 | |
| 36 | TEST_F(CMDTest, test_default) { |
nothing calls this directly
no test coverage detected