MCPcopy Create free account
hub / github.com/apache/mesos / parse

Function parse

src/common/roles.cpp:45–55  ·  view source on GitHub ↗

TODO(haosdent): Remove this function after we stop supporting `--roles` flag in master.

Source from the content-addressed store, hash-verified

43// TODO(haosdent): Remove this function after we stop supporting `--roles`
44// flag in master.
45Try<vector<string>> parse(const string& text)
46{
47 vector<string> roles = strings::tokenize(text, ",");
48
49 Option<Error> error = validate(roles);
50 if (error.isSome()) {
51 return error.get();
52 } else {
53 return roles;
54 }
55}
56
57
58vector<string> ancestors(const string& role)

Callers 9

parseMethod · 0.70
foreachFunction · 0.70
deserializeFunction · 0.70
foreachFunction · 0.70
kernelVersionFunction · 0.70
parseMethod · 0.70
testTCPConnectFunction · 0.50
foreachMethod · 0.50
mainFunction · 0.50

Calls 4

tokenizeFunction · 0.85
validateFunction · 0.70
isSomeMethod · 0.45
getMethod · 0.45

Tested by

no test coverage detected