MCPcopy Create free account
hub / github.com/GothenburgBitFactory/taskwarrior / providerString

Function providerString

test/dom_test.cpp:37–53  ·  view source on GitHub ↗

///////////////////////////////////////////////////////////////////////////

Source from the content-addressed store, hash-verified

35
36////////////////////////////////////////////////////////////////////////////////
37bool providerString(const std::string& path, Variant& var) {
38 if (path == "name") {
39 var = Variant("value");
40 return true;
41 } else if (path == "name.next") {
42 var = Variant("value.next");
43 return true;
44 } else if (path == "foo") {
45 var = Variant("bar");
46 return true;
47 } else if (path == "name.size") {
48 var = Variant(6);
49 return true;
50 }
51
52 return false;
53}
54
55} // namespace
56

Callers

nothing calls this directly

Calls 1

VariantClass · 0.85

Tested by

no test coverage detected