Lines Matching refs:config

40 namespace config = utils::config;
62 class custom_node : public config::typed_leaf_node< custom_type > {
127 config::tree tree; in ATF_TEST_CASE_BODY()
128 tree.define< config::bool_node >("top_boolean"); in ATF_TEST_CASE_BODY()
129 tree.define< config::int_node >("top_integer"); in ATF_TEST_CASE_BODY()
130 tree.define< config::string_node >("top_string"); in ATF_TEST_CASE_BODY()
134 config::redirect(state, tree); in ATF_TEST_CASE_BODY()
141 ATF_REQUIRE_EQ(true, tree.lookup< config::bool_node >("top_boolean")); in ATF_TEST_CASE_BODY()
142 ATF_REQUIRE_EQ(12345, tree.lookup< config::int_node >("top_integer")); in ATF_TEST_CASE_BODY()
143 ATF_REQUIRE_EQ("a foo", tree.lookup< config::string_node >("top_string")); in ATF_TEST_CASE_BODY()
150 config::tree tree; in ATF_TEST_CASE_BODY()
151 tree.define< config::int_node >("first"); in ATF_TEST_CASE_BODY()
152 tree.define< config::int_node >("second"); in ATF_TEST_CASE_BODY()
156 config::redirect(state, tree); in ATF_TEST_CASE_BODY()
160 ATF_REQUIRE_EQ(100, tree.lookup< config::int_node >("first")); in ATF_TEST_CASE_BODY()
161 ATF_REQUIRE_EQ(200, tree.lookup< config::int_node >("second")); in ATF_TEST_CASE_BODY()
168 config::tree tree; in ATF_TEST_CASE_BODY()
169 tree.define< config::int_node >("first"); in ATF_TEST_CASE_BODY()
173 config::redirect(state, tree); in ATF_TEST_CASE_BODY()
177 ATF_REQUIRE_EQ(200, tree.lookup< config::int_node >("first")); in ATF_TEST_CASE_BODY()
184 config::tree tree; in ATF_TEST_CASE_BODY()
185 tree.define< config::int_node >("first"); in ATF_TEST_CASE_BODY()
186 tree.set< config::int_node >("first", 100); in ATF_TEST_CASE_BODY()
190 config::redirect(state, tree); in ATF_TEST_CASE_BODY()
194 ATF_REQUIRE_EQ(1500, tree.lookup< config::int_node >("first")); in ATF_TEST_CASE_BODY()
201 config::tree tree; in ATF_TEST_CASE_BODY()
202 tree.define< config::bool_node >("root.boolean"); in ATF_TEST_CASE_BODY()
203 tree.define< config::int_node >("root.a.integer"); in ATF_TEST_CASE_BODY()
204 tree.define< config::string_node >("root.string"); in ATF_TEST_CASE_BODY()
208 config::redirect(state, tree); in ATF_TEST_CASE_BODY()
215 ATF_REQUIRE_EQ(true, tree.lookup< config::bool_node >("root.boolean")); in ATF_TEST_CASE_BODY()
216 ATF_REQUIRE_EQ(12345, tree.lookup< config::int_node >("root.a.integer")); in ATF_TEST_CASE_BODY()
217 ATF_REQUIRE_EQ("a foo", tree.lookup< config::string_node >("root.string")); in ATF_TEST_CASE_BODY()
224 config::tree tree; in ATF_TEST_CASE_BODY()
225 tree.define< config::int_node >("a.first"); in ATF_TEST_CASE_BODY()
226 tree.define< config::int_node >("a.second"); in ATF_TEST_CASE_BODY()
230 config::redirect(state, tree); in ATF_TEST_CASE_BODY()
234 ATF_REQUIRE_EQ(100, tree.lookup< config::int_node >("a.first")); in ATF_TEST_CASE_BODY()
235 ATF_REQUIRE_EQ(200, tree.lookup< config::int_node >("a.second")); in ATF_TEST_CASE_BODY()
242 config::tree tree; in ATF_TEST_CASE_BODY()
243 tree.define< config::int_node >("a.first"); in ATF_TEST_CASE_BODY()
247 config::redirect(state, tree); in ATF_TEST_CASE_BODY()
251 ATF_REQUIRE_EQ(200, tree.lookup< config::int_node >("a.first")); in ATF_TEST_CASE_BODY()
258 config::tree tree; in ATF_TEST_CASE_BODY()
259 tree.define< config::int_node >("a.first"); in ATF_TEST_CASE_BODY()
260 tree.set< config::int_node >("a.first", 100); in ATF_TEST_CASE_BODY()
264 config::redirect(state, tree); in ATF_TEST_CASE_BODY()
268 ATF_REQUIRE_EQ(1500, tree.lookup< config::int_node >("a.first")); in ATF_TEST_CASE_BODY()
275 config::tree tree; in ATF_TEST_CASE_BODY()
280 config::redirect(state, tree); in ATF_TEST_CASE_BODY()
290 ATF_REQUIRE_EQ("a", tree.lookup< config::string_node >("root.test")); in ATF_TEST_CASE_BODY()
291 ATF_REQUIRE_EQ("c", tree.lookup< config::string_node >("root.test2")); in ATF_TEST_CASE_BODY()
298 config::tree tree; in ATF_TEST_CASE_BODY()
302 config::redirect(state, tree); in ATF_TEST_CASE_BODY()
307 ATF_REQUIRE_EQ("1234", tree.lookup< config::string_node >("root.key1")); in ATF_TEST_CASE_BODY()
309 tree.lookup< config::string_node >("root.a.b.key2")); in ATF_TEST_CASE_BODY()
316 config::tree tree; in ATF_TEST_CASE_BODY()
320 config::redirect(state, tree); in ATF_TEST_CASE_BODY()
337 config::tree tree; in ATF_TEST_CASE_BODY()
338 tree.define< config::int_node >("the_key"); in ATF_TEST_CASE_BODY()
342 config::redirect(state, tree); in ATF_TEST_CASE_BODY()
351 ATF_REQUIRE_EQ(35, tree.lookup< config::int_node >("the_key")); in ATF_TEST_CASE_BODY()
358 config::tree tree; in ATF_TEST_CASE_BODY()
365 config::redirect(state, tree); in ATF_TEST_CASE_BODY()
378 config::tree tree; in ATF_TEST_CASE_BODY()
381 config::redirect(state, tree); in ATF_TEST_CASE_BODY()
390 config::tree tree; in ATF_TEST_CASE_BODY()
391 tree.define< config::bool_node >("static.bool"); in ATF_TEST_CASE_BODY()
394 config::redirect(state, tree); in ATF_TEST_CASE_BODY()
405 config::tree tree; in ATF_TEST_CASE_BODY()
406 tree.define< config::bool_node >("a.b"); in ATF_TEST_CASE_BODY()
409 config::redirect(state, tree); in ATF_TEST_CASE_BODY()