MCPcopy Create free account
hub / github.com/Xtra-Computing/thundersvm / read_cmd

Method read_cmd

src/test/test_cmd.cpp:20–33  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

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
36TEST_F(CMDTest, test_default) {

Callers

nothing calls this directly

Calls 2

SvmParamClass · 0.85
parse_command_lineMethod · 0.80

Tested by

no test coverage detected