MCPcopy Create free account
hub / github.com/boostorg/json / testChildPointer

Method testChildPointer

test/pointer.cpp:68–80  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

66 }
67
68 void
69 testChildPointer()
70 {
71 value const jv = testValue();
72 BOOST_TEST(&jv.at_pointer("/foo")== &jv.at("foo"));
73 BOOST_TEST(&jv.at_pointer("/c%d")== &jv.at("c%d"));
74 BOOST_TEST(&jv.at_pointer("/e^f")== &jv.at("e^f"));
75 BOOST_TEST(&jv.at_pointer("/g|h")== &jv.at("g|h"));
76 BOOST_TEST(&jv.at_pointer("/")== &jv.at(""));
77 BOOST_TEST(&jv.at_pointer("/i\\j")== &jv.at("i\\j"));
78 BOOST_TEST(&jv.at_pointer("/k\"l")== &jv.at("k\"l"));
79 BOOST_TEST(&jv.at_pointer("/ ")== &jv.at(" "));
80 }
81
82 void
83 testEscaped()

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected