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

Method populate

3rdparty/stout/tests/subcommand_tests.cpp:46–73  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

44 }
45
46 void populate()
47 {
48 b = true;
49 i = 42;
50 s = "hello";
51 s2 = "we're";
52 s3 = "\"geek\"";
53 d = Seconds(10);
54 y = Bytes(100);
55
56 JSON::Object object;
57 object.values["strings"] = "string";
58 object.values["integer1"] = 1;
59 object.values["integer2"] = -1;
60 object.values["double1"] = 1;
61 object.values["double2"] = -1;
62 object.values["double3"] = -1.42;
63
64 JSON::Object nested;
65 nested.values["string"] = "string";
66 object.values["nested"] = nested;
67
68 JSON::Array array;
69 array.values.push_back(nested);
70 object.values["array"] = array;
71
72 j = object;
73 }
74
75 Option<bool> b;
76 Option<int> i;

Callers 1

TESTFunction · 0.80

Calls 2

SecondsClass · 0.85
BytesClass · 0.85

Tested by

no test coverage detected