Lines Matching refs:int_node
136 tree.define< config::int_node >("var1"); in ATF_TEST_CASE_BODY()
140 tree.set< config::int_node >("var1", 42); in ATF_TEST_CASE_BODY()
144 ATF_REQUIRE_EQ(42, tree.lookup< config::int_node >("var1")); in ATF_TEST_CASE_BODY()
155 tree.define< config::int_node >("foo.bar.1"); in ATF_TEST_CASE_BODY()
160 tree.set< config::int_node >("foo.bar.1", 42); in ATF_TEST_CASE_BODY()
164 tree.set< config::int_node >("sub.tree.2", 4); in ATF_TEST_CASE_BODY()
165 tree.set< config::int_node >("sub.tree.3.4", 123); in ATF_TEST_CASE_BODY()
167 ATF_REQUIRE_EQ(42, tree.lookup< config::int_node >("foo.bar.1")); in ATF_TEST_CASE_BODY()
170 ATF_REQUIRE_EQ(4, tree.lookup< config::int_node >("sub.tree.2")); in ATF_TEST_CASE_BODY()
171 ATF_REQUIRE_EQ(123, tree.lookup< config::int_node >("sub.tree.3.4")); in ATF_TEST_CASE_BODY()
183 tree2.define< config::int_node >("var1"); in ATF_TEST_CASE_BODY()
193 tree1.define< config::int_node >("this.is.another.var"); in ATF_TEST_CASE_BODY()
194 tree1.set< config::int_node >("this.is.another.var", 34); in ATF_TEST_CASE_BODY()
195 tree1.define< config::int_node >("and.another"); in ATF_TEST_CASE_BODY()
196 tree1.set< config::int_node >("and.another", 123); in ATF_TEST_CASE_BODY()
200 tree2.set< config::int_node >("this.is.another.var", 43); in ATF_TEST_CASE_BODY()
205 ATF_REQUIRE_EQ(34, tree1.lookup< config::int_node >("this.is.another.var")); in ATF_TEST_CASE_BODY()
206 ATF_REQUIRE_EQ(43, tree2.lookup< config::int_node >("this.is.another.var")); in ATF_TEST_CASE_BODY()
208 ATF_REQUIRE_EQ(123, tree1.lookup< config::int_node >("and.another")); in ATF_TEST_CASE_BODY()
209 ATF_REQUIRE_EQ(123, tree2.lookup< config::int_node >("and.another")); in ATF_TEST_CASE_BODY()
227 tree.define< config::int_node >("int-node"); in init_tree_for_combine_test()
229 tree.define< config::int_node >("unused.node"); in init_tree_for_combine_test()
230 tree.define< config::int_node >("deeper.int.node"); in init_tree_for_combine_test()
241 t1.set< config::int_node >("int-node", 3); in ATF_TEST_CASE_BODY()
243 t1.set< config::int_node >("deeper.int.node", 15); in ATF_TEST_CASE_BODY()
258 t2.set< config::int_node >("int-node", 3); in ATF_TEST_CASE_BODY()
260 t2.set< config::int_node >("deeper.int.node", 15); in ATF_TEST_CASE_BODY()
275 t1.set< config::int_node >("int-node", 3); in ATF_TEST_CASE_BODY()
276 t2.set< config::int_node >("int-node", 5); in ATF_TEST_CASE_BODY()
278 t2.set< config::int_node >("deeper.int.node", 15); in ATF_TEST_CASE_BODY()
287 expected.set< config::int_node >("int-node", 5); in ATF_TEST_CASE_BODY()
289 expected.set< config::int_node >("deeper.int.node", 15); in ATF_TEST_CASE_BODY()
301 t1.define< config::int_node >("common.base1"); in ATF_TEST_CASE_BODY()
302 t1.define< config::int_node >("common.base2"); in ATF_TEST_CASE_BODY()
304 t1.define< config::int_node >("unset.base"); in ATF_TEST_CASE_BODY()
307 t2.define< config::int_node >("common.base2"); in ATF_TEST_CASE_BODY()
308 t2.define< config::int_node >("common.base3"); in ATF_TEST_CASE_BODY()
310 t2.define< config::int_node >("unset.other"); in ATF_TEST_CASE_BODY()
312 t1.set< config::int_node >("common.base1", 1); in ATF_TEST_CASE_BODY()
313 t1.set< config::int_node >("common.base2", 2); in ATF_TEST_CASE_BODY()
317 t2.set< config::int_node >("common.base2", 4); in ATF_TEST_CASE_BODY()
318 t2.set< config::int_node >("common.base3", 3); in ATF_TEST_CASE_BODY()
325 expected.define< config::int_node >("common.base1"); in ATF_TEST_CASE_BODY()
326 expected.define< config::int_node >("common.base2"); in ATF_TEST_CASE_BODY()
327 expected.define< config::int_node >("common.base3"); in ATF_TEST_CASE_BODY()
330 expected.define< config::int_node >("unset.base"); in ATF_TEST_CASE_BODY()
331 expected.define< config::int_node >("unset.other"); in ATF_TEST_CASE_BODY()
333 expected.set< config::int_node >("common.base1", 1); in ATF_TEST_CASE_BODY()
334 expected.set< config::int_node >("common.base2", 4); in ATF_TEST_CASE_BODY()
335 expected.set< config::int_node >("common.base3", 3); in ATF_TEST_CASE_BODY()
345 combined.set< config::int_node >("unset.base", 5); in ATF_TEST_CASE_BODY()
346 combined.set< config::int_node >("unset.other", 5); in ATF_TEST_CASE_BODY()
354 t1.define< config::int_node >("inner.leaf1"); in ATF_TEST_CASE_BODY()
355 t1.set< config::int_node >("inner.leaf1", 3); in ATF_TEST_CASE_BODY()
380 t1.define< config::int_node >("top.foo.bar"); in ATF_TEST_CASE_BODY()
383 t2.define< config::int_node >("top.foo"); in ATF_TEST_CASE_BODY()
403 tree.lookup< config::int_node >(".")); in ATF_TEST_CASE_BODY()
412 tree.define< config::int_node >("foo.bar"); in ATF_TEST_CASE_BODY()
413 tree.define< config::int_node >("a.b.c"); in ATF_TEST_CASE_BODY()
415 tree.set< config::int_node >("a.b.c", 123); in ATF_TEST_CASE_BODY()
416 tree.set< config::int_node >("a.d.100", 0); in ATF_TEST_CASE_BODY()
419 tree.lookup< config::int_node >("abc")); in ATF_TEST_CASE_BODY()
422 tree.lookup< config::int_node >("foo")); in ATF_TEST_CASE_BODY()
424 tree.lookup< config::int_node >("foo.bar")); in ATF_TEST_CASE_BODY()
426 tree.lookup< config::int_node >("foo.bar.baz")); in ATF_TEST_CASE_BODY()
429 tree.lookup< config::int_node >("a")); in ATF_TEST_CASE_BODY()
431 tree.lookup< config::int_node >("a.b")); in ATF_TEST_CASE_BODY()
433 tree.lookup< config::int_node >("a.c")); in ATF_TEST_CASE_BODY()
434 (void)tree.lookup< config::int_node >("a.b.c"); in ATF_TEST_CASE_BODY()
436 tree.lookup< config::int_node >("a.b.c.d")); in ATF_TEST_CASE_BODY()
438 tree.lookup< config::int_node >("a.d")); in ATF_TEST_CASE_BODY()
439 (void)tree.lookup< config::int_node >("a.d.100"); in ATF_TEST_CASE_BODY()
441 tree.lookup< config::int_node >("a.d.101")); in ATF_TEST_CASE_BODY()
443 tree.lookup< config::int_node >("a.d.100.3")); in ATF_TEST_CASE_BODY()
445 tree.lookup< config::int_node >("a.d.e")); in ATF_TEST_CASE_BODY()
454 tree.define< config::int_node >("var1"); in ATF_TEST_CASE_BODY()
458 tree.set< config::int_node >("var1", 42); in ATF_TEST_CASE_BODY()
472 tree.define< config::int_node >("a.b.var1"); in ATF_TEST_CASE_BODY()
476 tree.set< config::int_node >("a.b.var1", 42); in ATF_TEST_CASE_BODY()
510 tree.set< config::int_node >("foo.", 54)); in ATF_TEST_CASE_BODY()
519 tree.define< config::int_node >("foo.bar"); in ATF_TEST_CASE_BODY()
523 tree.set< config::int_node >("foo", 3)); in ATF_TEST_CASE_BODY()
525 tree.set< config::int_node >("a", -10)); in ATF_TEST_CASE_BODY()
534 tree.define< config::int_node >("foo.bar"); in ATF_TEST_CASE_BODY()
535 tree.define< config::int_node >("a.b.c"); in ATF_TEST_CASE_BODY()
537 tree.set< config::int_node >("a.b.c", 123); in ATF_TEST_CASE_BODY()
541 tree.set< config::int_node >("abc", 2)); in ATF_TEST_CASE_BODY()
543 tree.set< config::int_node >("foo.bar", 15); in ATF_TEST_CASE_BODY()
545 tree.set< config::int_node >("foo.bar.baz", 0)); in ATF_TEST_CASE_BODY()
548 tree.set< config::int_node >("a.c", 100)); in ATF_TEST_CASE_BODY()
549 tree.set< config::int_node >("a.b.c", -3); in ATF_TEST_CASE_BODY()
551 tree.set< config::int_node >("a.b.c.d", 82)); in ATF_TEST_CASE_BODY()
555 tree.set< config::int_node >("a.d.4.5", 82)); in ATF_TEST_CASE_BODY()
556 tree.set< config::int_node >("a.d.5.6", 82); in ATF_TEST_CASE_BODY()
565 tree.define< config::int_node >("foo.bar"); in ATF_TEST_CASE_BODY()
566 tree.define< config::int_node >("a.b.c"); in ATF_TEST_CASE_BODY()
568 tree.set< config::int_node >("a.b.c", 123); in ATF_TEST_CASE_BODY()
571 tree.set< config::int_node >("abc", 2); in ATF_TEST_CASE_BODY()
574 tree.set< config::int_node >("foo.bar", 15); in ATF_TEST_CASE_BODY()
575 tree.set< config::int_node >("foo.bar.baz", 0); in ATF_TEST_CASE_BODY()
578 tree.set< config::int_node >("a.c", 100); in ATF_TEST_CASE_BODY()
588 tree.define< config::int_node >("top.integer"); in ATF_TEST_CASE_BODY()
591 tree.set< config::int_node >("top.integer", 5); in ATF_TEST_CASE_BODY()
614 tree.define< config::int_node >("top.integer"); in ATF_TEST_CASE_BODY()
629 ATF_REQUIRE_EQ(5, tree.lookup< config::int_node >("top.integer")); in ATF_TEST_CASE_BODY()
640 tree.define< config::int_node >("var1"); in ATF_TEST_CASE_BODY()
643 tree.set< config::int_node >("var1", 42); in ATF_TEST_CASE_BODY()
646 tree.lookup_rw< config::int_node >("var1") += 10; in ATF_TEST_CASE_BODY()
647 ATF_REQUIRE_EQ(52, tree.lookup< config::int_node >("var1")); in ATF_TEST_CASE_BODY()
657 tree.define< config::int_node >("var1"); in ATF_TEST_CASE_BODY()
661 tree.set< config::int_node >("var1", 42); in ATF_TEST_CASE_BODY()
685 tree.define< config::int_node >("a.b.c"); in ATF_TEST_CASE_BODY()
697 tree.define< config::int_node >("foo.bar.1"); in ATF_TEST_CASE_BODY()
706 ATF_REQUIRE_EQ(42, tree.lookup< config::int_node >("foo.bar.1")); in ATF_TEST_CASE_BODY()
727 tree.define< config::int_node >("foo.bar"); in ATF_TEST_CASE_BODY()
743 tree.define< config::int_node >("foo.bar"); in ATF_TEST_CASE_BODY()
744 tree.define< config::int_node >("a.b.c"); in ATF_TEST_CASE_BODY()
773 tree.define< config::int_node >("foo.bar"); in ATF_TEST_CASE_BODY()
774 tree.define< config::int_node >("a.b.c"); in ATF_TEST_CASE_BODY()
804 tree.define< config::int_node >("plain"); in ATF_TEST_CASE_BODY()
805 tree.set< config::int_node >("plain", 1234); in ATF_TEST_CASE_BODY()
807 tree.define< config::int_node >("static.first"); in ATF_TEST_CASE_BODY()
808 tree.set< config::int_node >("static.first", -3); in ATF_TEST_CASE_BODY()
833 tree.define< config::int_node >("static.first"); in ATF_TEST_CASE_BODY()
834 tree.set< config::int_node >("static.first", -3); in ATF_TEST_CASE_BODY()
852 tree.define< config::int_node >("root.a.b.c.first"); in ATF_TEST_CASE_BODY()
853 tree.define< config::int_node >("root.a.b.c.second"); in ATF_TEST_CASE_BODY()
854 tree.define< config::int_node >("root.a.d.first"); in ATF_TEST_CASE_BODY()
856 tree.set< config::int_node >("root.a.b.c.first", 1); in ATF_TEST_CASE_BODY()
857 tree.set< config::int_node >("root.a.b.c.second", 2); in ATF_TEST_CASE_BODY()
858 tree.set< config::int_node >("root.a.d.first", 3); in ATF_TEST_CASE_BODY()
890 tree.define< config::int_node >("root.a.b.c.first"); in ATF_TEST_CASE_BODY()
891 tree.set< config::int_node >("root.a.b.c.first", 1); in ATF_TEST_CASE_BODY()
902 tree.define< config::int_node >("root.a.b.c.first"); in ATF_TEST_CASE_BODY()
903 tree.define< config::int_node >("root.a.b.c.second"); in ATF_TEST_CASE_BODY()
904 tree.define< config::int_node >("root.a.d.first"); in ATF_TEST_CASE_BODY()
906 tree.set< config::int_node >("root.a.b.c.first", 1); in ATF_TEST_CASE_BODY()
907 tree.set< config::int_node >("root.a.b.c.second", 2); in ATF_TEST_CASE_BODY()
908 tree.set< config::int_node >("root.a.d.first", 3); in ATF_TEST_CASE_BODY()
932 tree.define< config::int_node >("root.a.b.c.first"); in ATF_TEST_CASE_BODY()
933 tree.set< config::int_node >("root.a.b.c.first", 1); in ATF_TEST_CASE_BODY()
934 tree.define< config::int_node >("root.a.b.c.unset"); in ATF_TEST_CASE_BODY()
957 t1.define< config::int_node >("root.a.b.c.first"); in ATF_TEST_CASE_BODY()
958 t1.set< config::int_node >("root.a.b.c.first", 1); in ATF_TEST_CASE_BODY()
969 t1.define< config::int_node >("root.a.b.c.first"); in ATF_TEST_CASE_BODY()
970 t1.set< config::int_node >("root.a.b.c.first", 1); in ATF_TEST_CASE_BODY()
982 t1.define< config::int_node >("root.a.b.c.first"); in ATF_TEST_CASE_BODY()
983 t1.set< config::int_node >("root.a.b.c.first", 1); in ATF_TEST_CASE_BODY()
987 t2.define< config::int_node >("root.a.b.c.first"); in ATF_TEST_CASE_BODY()
988 t2.set< config::int_node >("root.a.b.c.first", 1); in ATF_TEST_CASE_BODY()
992 t1.set< config::int_node >("root.a.b.c.first", 2); in ATF_TEST_CASE_BODY()
996 t2.set< config::int_node >("root.a.b.c.first", 2); in ATF_TEST_CASE_BODY()