MCPcopy Create free account
hub / github.com/ceph/ceph / TEST

Function TEST

src/test/common/test_json_formattable.cc:41–47  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

39}
40
41TEST(formatable, str) {
42 JSONFormattable f;
43 get_jf("{ \"foo\": \"bar\" }", &f);
44 ASSERT_EQ((string)f["foo"], "bar");
45 ASSERT_EQ((string)f["fooz"], "");
46 ASSERT_EQ((string)f["fooz"]("lala"), "lala");
47}
48
49TEST(formatable, str2) {
50 JSONFormattable f;

Callers

nothing calls this directly

Calls 15

get_jfFunction · 0.85
dumpfFunction · 0.85
formatter_convertFunction · 0.85
dumptFunction · 0.85
encodeFunction · 0.50
decodeFunction · 0.50
encode_jsonFunction · 0.50
cbeginMethod · 0.45
open_object_sectionMethod · 0.45
close_sectionMethod · 0.45
flushMethod · 0.45
strMethod · 0.45

Tested by

no test coverage detected