Lines Matching full:model
29 #include "model/test_program.hpp"
42 #include "model/exceptions.hpp"
43 #include "model/metadata.hpp"
44 #include "model/test_case.hpp"
45 #include "model/test_result.hpp"
65 class lazy_test_program : public model::test_program {
73 model::test_cases_map _lazy_test_cases;
88 const model::metadata& metadata_, in lazy_test_program()
89 const model::test_cases_map& test_cases_) : in lazy_test_program()
91 metadata_, model::test_cases_map()), in lazy_test_program()
100 const model::test_cases_map&
118 /// \tparam TestProgram Either model::test_program or lazy_test_program.
123 const model::metadata tp_md = model::metadata_builder() in check_ctor_and_getters()
127 const model::metadata tc_md = model::metadata_builder() in check_ctor_and_getters()
133 model::test_cases_map_builder().add("foo", tc_md).build()); in check_ctor_and_getters()
144 const model::metadata exp_tc_md = model::metadata_builder() in check_ctor_and_getters()
148 const model::test_cases_map exp_tcs = model::test_cases_map_builder() in check_ctor_and_getters()
158 check_ctor_and_getters< model::test_program >(); in ATF_TEST_CASE_BODY()
171 /// \tparam TestProgram Either model::test_program or lazy_test_program.
176 const model::test_case test_case("main", model::metadata_builder().build()); in check_find_ok()
180 model::metadata_builder().build(), in check_find_ok()
181 model::test_cases_map_builder().add(test_case).build()); in check_find_ok()
183 const model::test_case& found_test_case = test_program.find("main"); in check_find_ok()
191 check_find_ok< model::test_program >(); in ATF_TEST_CASE_BODY()
204 /// \tparam TestProgram Either model::test_program or lazy_test_program.
211 model::metadata_builder().build(), in check_find_missing()
212 model::test_cases_map_builder().add("main").build()); in check_find_missing()
214 ATF_REQUIRE_THROW_RE(model::not_found_error, in check_find_missing()
223 check_find_missing< model::test_program >(); in ATF_TEST_CASE_BODY()
236 /// \tparam TestProgram Either model::test_program or lazy_test_program.
241 const model::test_cases_map test_cases = model::test_cases_map_builder() in check_metadata_inheritance()
244 model::metadata_builder() in check_metadata_inheritance()
248 model::metadata_builder() in check_metadata_inheritance()
255 const model::metadata metadata = model::metadata_builder() in check_metadata_inheritance()
264 const model::metadata exp_metadata = model::metadata_builder() in check_metadata_inheritance()
273 const model::metadata exp_metadata = model::metadata_builder() in check_metadata_inheritance()
282 const model::metadata exp_metadata = model::metadata_builder() in check_metadata_inheritance()
296 check_metadata_inheritance< model::test_program >(); in ATF_TEST_CASE_BODY()
309 /// \tparam TestProgram Either model::test_program or lazy_test_program.
316 model::metadata_builder().build(), in check_operators_eq_and_ne__copy()
317 model::test_cases_map()); in check_operators_eq_and_ne__copy()
327 check_operators_eq_and_ne__copy< model::test_program >(); in ATF_TEST_CASE_BODY()
340 /// \tparam TestProgram Either model::test_program or lazy_test_program.
349 const model::metadata base_metadata = model::metadata_builder() in check_operators_eq_and_ne__not_copy()
353 const model::test_cases_map base_tcs = model::test_cases_map_builder() in check_operators_eq_and_ne__not_copy()
354 .add("main", model::metadata_builder() in check_operators_eq_and_ne__not_copy()
365 const model::test_cases_map other_tcs = model::test_cases_map_builder() in check_operators_eq_and_ne__not_copy()
366 .add("main", model::metadata_builder() in check_operators_eq_and_ne__not_copy()
384 const model::test_cases_map other_tcs = model::test_cases_map_builder() in check_operators_eq_and_ne__not_copy()
385 .add("main", model::metadata_builder() in check_operators_eq_and_ne__not_copy()
443 model::metadata_builder().build(), base_tcs); in check_operators_eq_and_ne__not_copy()
451 const model::test_cases_map other_tcs = model::test_cases_map_builder() in check_operators_eq_and_ne__not_copy()
467 check_operators_eq_and_ne__not_copy< model::test_program >(); in ATF_TEST_CASE_BODY()
480 /// \tparam TestProgram Either model::test_program or lazy_test_program.
487 model::metadata_builder().build(), in check_operator_lt()
488 model::test_cases_map()); in check_operator_lt()
491 model::metadata_builder().build(), in check_operator_lt()
492 model::test_cases_map()); in check_operator_lt()
495 model::metadata_builder().build(), in check_operator_lt()
496 model::test_cases_map()); in check_operator_lt()
518 check_operator_lt< model::test_program >(); in ATF_TEST_CASE_BODY()
531 /// \tparam TestProgram Either model::test_program or lazy_test_program.
538 model::metadata_builder().add_allowed_architecture("a").build(), in check_output__no_test_cases()
539 model::test_cases_map()); in check_output__no_test_cases()
560 check_output__no_test_cases< model::test_program >(); in ATF_TEST_CASE_BODY()
573 /// \tparam TestProgram Either model::test_program or lazy_test_program.
578 const model::test_cases_map test_cases = model::test_cases_map_builder() in check_output__some_test_cases()
579 .add("the-name", model::metadata_builder() in check_output__some_test_cases()
588 model::metadata_builder().add_allowed_architecture("a").build(), in check_output__some_test_cases()
624 check_output__some_test_cases< model::test_program >(); in ATF_TEST_CASE_BODY()
638 const model::test_program expected( in ATF_TEST_CASE_BODY()
640 model::metadata_builder().build(), model::test_cases_map()); in ATF_TEST_CASE_BODY()
642 const model::test_program built = model::test_program_builder( in ATF_TEST_CASE_BODY()
653 const model::metadata md = model::metadata_builder() in ATF_TEST_CASE_BODY()
656 const model::test_cases_map tcs = model::test_cases_map_builder() in ATF_TEST_CASE_BODY()
660 const model::test_program expected( in ATF_TEST_CASE_BODY()
663 const model::test_program built = model::test_program_builder( in ATF_TEST_CASE_BODY()
677 const model::test_program expected( in ATF_TEST_CASE_BODY()
679 model::metadata_builder().build(), model::test_cases_map()); in ATF_TEST_CASE_BODY()
681 const model::test_program_ptr built = model::test_program_builder( in ATF_TEST_CASE_BODY()