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

Function parse

src/v1/parse.hpp:28–36  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

26
27template <>
28inline Try<mesos::v1::CapabilityInfo> parse(const std::string& value)
29{
30 Try<JSON::Object> json = parse<JSON::Object>(value);
31 if (json.isError()) {
32 return Error(json.error());
33 }
34
35 return protobuf::parse<mesos::v1::CapabilityInfo>(json.get());
36}
37
38
39template <>

Callers 3

parseMethod · 0.70
foreachFunction · 0.70
parseMethod · 0.70

Calls 4

errorMethod · 0.65
ErrorFunction · 0.50
isErrorMethod · 0.45
getMethod · 0.45

Tested by

no test coverage detected