Home
last modified time | relevance | path

Searched refs:custom_node (Results 1 – 1 of 1) sorted by relevance

/freebsd/contrib/kyua/utils/config/
H A Dlua_module_test.cpp62 class custom_node : public config::typed_leaf_node< custom_type > { class
70 std::auto_ptr< custom_node > new_node(new custom_node()); in deep_copy()
385 ATF_TEST_CASE_WITHOUT_HEAD(custom_node);
386 ATF_TEST_CASE_BODY(custom_node) in ATF_TEST_CASE_BODY() argument
389 tree.define< custom_node >("key1"); in ATF_TEST_CASE_BODY()
390 tree.define< custom_node >("key2"); in ATF_TEST_CASE_BODY()
391 tree.set< custom_node >("key2", custom_type(10)); in ATF_TEST_CASE_BODY()
400 ATF_REQUIRE_EQ(1024, tree.lookup< custom_node >("key1").value); in ATF_TEST_CASE_BODY()
401 ATF_REQUIRE_EQ(200, tree.lookup< custom_node >("key2").value); in ATF_TEST_CASE_BODY()
469 ATF_ADD_TEST_CASE(tcs, custom_node); in ATF_INIT_TEST_CASES()