Home
last modified time | relevance | path

Searched refs:CHECK (Results 1 – 25 of 73) sorted by relevance

123

/xnu-11215/tests/safe_allocation_src/
H A Dassign.move.cpp29 CHECK(&ref == &to); in tests()
31 CHECK(to.size() == 10); in tests()
33 CHECK(from.size() == 0); in tests()
54 CHECK(&ref == &to); in tests()
56 CHECK(to.size() == 0); in tests()
58 CHECK(from.size() == 0); in tests()
80 CHECK(&ref == &to); in tests()
82 CHECK(to.size() == 10); in tests()
105 CHECK(&ref == &to); in tests()
107 CHECK(to.size() == 0); in tests()
[all …]
H A Dctor.move.cpp30 CHECK(to.data() == memory); in tests()
31 CHECK(to.size() == 10); in tests()
33 CHECK(from.size() == 0); in tests()
50 CHECK(to.data() == memory); in tests()
51 CHECK(to.size() == 10); in tests()
53 CHECK(from.size() == 0); in tests()
70 CHECK(to.data() == memory); in tests()
71 CHECK(to.size() == 10); in tests()
73 CHECK(from.size() == 0); in tests()
91 CHECK(to.size() == 0); in tests()
[all …]
H A Dswap.cpp30 CHECK(a.data() == b_mem); in tests()
31 CHECK(b.data() == a_mem); in tests()
32 CHECK(a.size() == 20); in tests()
33 CHECK(b.size() == 10); in tests()
49 CHECK(a.size() == 0); in tests()
50 CHECK(b.size() == 10); in tests()
66 CHECK(a.size() == 20); in tests()
67 CHECK(b.size() == 0); in tests()
82 CHECK(a.size() == 0); in tests()
83 CHECK(b.size() == 0); in tests()
[all …]
H A Dctor.nullptr.cpp20 CHECK(array.data() == nullptr); in tests()
21 CHECK(array.size() == 0); in tests()
22 CHECK(array.begin() == array.end()); in tests()
26 CHECK(array.data() == nullptr); in tests()
27 CHECK(array.size() == 0); in tests()
28 CHECK(array.begin() == array.end()); in tests()
32 CHECK(array.data() == nullptr); in tests()
33 CHECK(array.size() == 0); in tests()
34 CHECK(array.begin() == array.end()); in tests()
38 CHECK(array.data() == nullptr); in tests()
[all …]
H A Dctor.allocate.cpp31 CHECK(tracking_allocator::allocated_size == 10 * sizeof(T)); in tests()
32 CHECK(array.data() != nullptr); in tests()
33 CHECK(array.size() == 10); in tests()
34 CHECK(array.begin() == array.data()); in tests()
35 CHECK(array.end() == array.data() + 10); in tests()
47 CHECK(array.data() == nullptr); in tests()
48 CHECK(array.size() == 0); in tests()
49 CHECK(array.begin() == array.end()); in tests()
50 CHECK(!tracking_allocator::did_allocate); in tests()
52 CHECK(!tracking_allocator::did_deallocate); in tests()
[all …]
H A Dctor.default.cpp20 CHECK(array.data() == nullptr); in tests()
21 CHECK(array.size() == 0); in tests()
22 CHECK(array.begin() == array.end()); in tests()
26 CHECK(array.data() == nullptr); in tests()
27 CHECK(array.size() == 0); in tests()
28 CHECK(array.begin() == array.end()); in tests()
32 CHECK(array.data() == nullptr); in tests()
33 CHECK(array.size() == 0); in tests()
34 CHECK(array.begin() == array.end()); in tests()
H A Dcompare.equal.nullptr.cpp28 CHECK(!(array == nullptr)); in tests()
29 CHECK(!(nullptr == array)); in tests()
30 CHECK(array != nullptr); in tests()
31 CHECK(nullptr != array); in tests()
35 CHECK(array == nullptr); in tests()
36 CHECK(nullptr == array); in tests()
37 CHECK(!(array != nullptr)); in tests()
38 CHECK(!(nullptr != array)); in tests()
/xnu-11215/tests/bounded_array_ref_src/
H A Dslice.cpp29 CHECK(slice.size() == 0); in tests()
34 CHECK(slice.size() == 1); in tests()
40 CHECK(slice.size() == 2); in tests()
47 CHECK(slice.size() == 5); in tests()
66 CHECK(slice.size() == 0); in tests()
71 CHECK(slice.size() == 3); in tests()
79 CHECK(slice.size() == 4); in tests()
102 CHECK(slice.size() == 0); in tests()
107 CHECK(slice.size() == 2); in tests()
128 CHECK(slice.size() == 0); in tests()
[all …]
H A Dctor.raw_ptr.cpp35 CHECK(view.size() == 5); in tests()
36 CHECK(view[0] == T{0}); in tests()
37 CHECK(view[1] == T{1}); in tests()
38 CHECK(view[2] == T{2}); in tests()
39 CHECK(view[3] == T{3}); in tests()
40 CHECK(view[4] == T{4}); in tests()
53 CHECK(view[0] == T{0}); in tests()
54 CHECK(view[1] == T{1}); in tests()
55 CHECK(view[2] == T{2}); in tests()
68 CHECK(view[0] == T{3}); in tests()
[all …]
H A Dctor.bounded_ptr.cpp37 CHECK(view.size() == 5); in tests()
38 CHECK(view[0] == T{0}); in tests()
39 CHECK(view[1] == T{1}); in tests()
40 CHECK(view[2] == T{2}); in tests()
41 CHECK(view[3] == T{3}); in tests()
42 CHECK(view[4] == T{4}); in tests()
55 CHECK(view[0] == T{0}); in tests()
56 CHECK(view[1] == T{1}); in tests()
57 CHECK(view[2] == T{2}); in tests()
70 CHECK(view[0] == T{3}); in tests()
[all …]
H A Dctor.bounded_array.cpp27 CHECK(view.size() == 5); in tests()
28 CHECK(view[0] == T{0}); in tests()
29 CHECK(view[1] == T{1}); in tests()
30 CHECK(view[2] == T{2}); in tests()
31 CHECK(view[3] == T{3}); in tests()
32 CHECK(view[4] == T{4}); in tests()
39 CHECK(view.size() == 1); in tests()
40 CHECK(view[0] == T{11}); in tests()
47 CHECK(view.size() == 0); in tests()
55 CHECK(view.size() == 1); in tests()
[all …]
H A Dctor.C_array.cpp26 CHECK(view.data() == &array[0]); in tests()
27 CHECK(view.size() == 5); in tests()
28 CHECK(view[0] == T{0}); in tests()
29 CHECK(view[1] == T{1}); in tests()
30 CHECK(view[2] == T{2}); in tests()
31 CHECK(view[3] == T{3}); in tests()
32 CHECK(view[4] == T{4}); in tests()
39 CHECK(view.size() == 1); in tests()
40 CHECK(view[0] == T{11}); in tests()
48 CHECK(view.size() == 1); in tests()
[all …]
H A Dctor.begin_end.cpp32 CHECK(view.data() == &array[0]); in tests()
33 CHECK(view.size() == 5); in tests()
34 CHECK(view[0] == T{0}); in tests()
35 CHECK(view[1] == T{1}); in tests()
36 CHECK(view[2] == T{2}); in tests()
37 CHECK(view[3] == T{3}); in tests()
38 CHECK(view[4] == T{4}); in tests()
50 CHECK(view.size() == 1); in tests()
51 CHECK(view[0] == T{0}); in tests()
62 CHECK(view.size() == 0); in tests()
[all …]
/xnu-11215/tests/intrusive_shared_ptr_src/
H A Dreset.retain.cpp26 CHECK(tracking_policy::releases == 1); in tests()
27 CHECK(tracking_policy::retains == 1); in tests()
28 CHECK(ptr.get() == &obj2); in tests()
36 CHECK(tracking_policy::releases == 1); in tests()
37 CHECK(tracking_policy::retains == 0); in tests()
38 CHECK(ptr.get() == nullptr); in tests()
48 CHECK(ptr.get() == &obj2); in tests()
58 CHECK(ptr.get() == nullptr); in tests()
70 CHECK(!tracking_policy::hit_zero); in tests()
71 CHECK(ptr.get() == &obj1); in tests()
[all …]
H A Dswap.cpp29 CHECK(tracking_policy::retains == 0); in tests()
30 CHECK(tracking_policy::releases == 0); in tests()
31 CHECK(a.get() == b_raw); in tests()
32 CHECK(b.get() == a_raw); in tests()
46 CHECK(a.get() == nullptr); in tests()
47 CHECK(b.get() == a_raw); in tests()
61 CHECK(a.get() == b_raw); in tests()
62 CHECK(b.get() == nullptr); in tests()
75 CHECK(a.get() == nullptr); in tests()
76 CHECK(b.get() == nullptr); in tests()
[all …]
H A Dcast.const.cpp27 CHECK(tracking_policy::retains == 1); in tests()
28 CHECK(tracking_policy::releases == 0); in tests()
30 CHECK(from.get() == &obj); in tests()
36 CHECK(tracking_policy::retains == 0); in tests()
37 CHECK(tracking_policy::releases == 0); in tests()
39 CHECK(from.get() == nullptr); in tests()
47 CHECK(tracking_policy::retains == 0); in tests()
49 CHECK(to.get() == nullptr); in tests()
50 CHECK(from.get() == nullptr); in tests()
58 CHECK(to.get() == nullptr); in tests()
[all …]
H A Dcast.reinterpret.cpp31 CHECK(tracking_policy::retains == 1); in tests()
32 CHECK(tracking_policy::releases == 0); in tests()
34 CHECK(from.get() == &obj); in tests()
40 CHECK(tracking_policy::retains == 0); in tests()
41 CHECK(tracking_policy::releases == 0); in tests()
43 CHECK(from.get() == nullptr); in tests()
51 CHECK(tracking_policy::retains == 0); in tests()
53 CHECK(to.get() == nullptr); in tests()
54 CHECK(from.get() == nullptr); in tests()
62 CHECK(to.get() == nullptr); in tests()
[all …]
H A Dcast.static.cpp36 CHECK(tracking_policy::retains == 1); in tests()
37 CHECK(tracking_policy::releases == 0); in tests()
39 CHECK(from.get() == &obj); in tests()
45 CHECK(tracking_policy::retains == 0); in tests()
46 CHECK(tracking_policy::releases == 0); in tests()
48 CHECK(from.get() == nullptr); in tests()
56 CHECK(tracking_policy::retains == 0); in tests()
58 CHECK(to.get() == nullptr); in tests()
59 CHECK(from.get() == nullptr); in tests()
67 CHECK(to.get() == nullptr); in tests()
[all …]
H A Dassign.copy.cpp42 CHECK(&ref == &to); in tests()
43 CHECK(from.get() == &obj1); in tests()
44 CHECK(to.get() == &obj1); in tests()
55 CHECK(&ref == &to); in tests()
56 CHECK(from.get() == &obj1); in tests()
57 CHECK(to.get() == &obj1); in tests()
68 CHECK(&ref == &to); in tests()
69 CHECK(from.get() == nullptr); in tests()
70 CHECK(to.get() == nullptr); in tests()
81 CHECK(&ref == &to); in tests()
[all …]
H A Dreset.no_retain.cpp26 CHECK(tracking_policy::releases == 1); in tests()
27 CHECK(tracking_policy::retains == 0); in tests()
28 CHECK(ptr.get() == &obj2); in tests()
36 CHECK(tracking_policy::releases == 0); in tests()
37 CHECK(tracking_policy::retains == 0); in tests()
38 CHECK(ptr.get() == &obj2); in tests()
47 CHECK(tracking_policy::retains == 0); in tests()
48 CHECK(ptr.get() == nullptr); in tests()
57 CHECK(tracking_policy::retains == 0); in tests()
58 CHECK(ptr.get() == nullptr); in tests()
[all …]
H A Dassign.move.cpp43 CHECK(&ref == &to); in tests()
44 CHECK(from.get() == nullptr); in tests()
45 CHECK(to.get() == &obj1); in tests()
56 CHECK(&ref == &to); in tests()
57 CHECK(from.get() == nullptr); in tests()
58 CHECK(to.get() == &obj1); in tests()
69 CHECK(&ref == &to); in tests()
70 CHECK(from.get() == nullptr); in tests()
71 CHECK(to.get() == nullptr); in tests()
82 CHECK(&ref == &to); in tests()
[all …]
H A Dctor.move.cpp40 CHECK(from.get() == &obj); in tests()
44 CHECK(to.get() == &obj); in tests()
45 CHECK(from.get() == nullptr); in tests()
51 CHECK(from.get() == &obj); in tests()
55 CHECK(to.get() == &obj); in tests()
56 CHECK(from.get() == nullptr); in tests()
62 CHECK(from.get() == &obj); in tests()
66 CHECK(to.get() == &obj); in tests()
67 CHECK(from.get() == nullptr); in tests()
76 CHECK(to.get() == nullptr); in tests()
[all …]
/xnu-11215/tests/bounded_array_src/
H A Ddata.cpp26 CHECK(data != nullptr); in tests()
27 CHECK(data[0] == T{0}); in tests()
28 CHECK(data[1] == T{1}); in tests()
29 CHECK(data[2] == T{2}); in tests()
30 CHECK(data[3] == T{3}); in tests()
31 CHECK(data[4] == T{4}); in tests()
36 CHECK(data != nullptr); in tests()
37 CHECK(data[0] == T{0}); in tests()
38 CHECK(data[1] == T{1}); in tests()
39 CHECK(data[2] == T{2}); in tests()
[all …]
H A Dctor.aggregate_init.cpp32 CHECK(array.size() == 5); in tests()
33 CHECK(array[0] == T(1)); in tests()
34 CHECK(array[1] == T(2)); in tests()
35 CHECK(array[2] == T(3)); in tests()
36 CHECK(array[3] == T(4)); in tests()
37 CHECK(array[4] == T(5)); in tests()
43 CHECK(array[0] == T(1)); in tests()
44 CHECK(array[1] == T(2)); in tests()
45 CHECK(array[2] == T(3)); in tests()
46 CHECK(array[3] == T(4)); in tests()
[all …]
H A Doperator.subscript.cpp26 CHECK(&a0 == array.data()); in tests()
27 CHECK(a0 == T{0}); in tests()
29 CHECK(a1 == T{1}); in tests()
31 CHECK(a2 == T{2}); in tests()
33 CHECK(a3 == T{3}); in tests()
35 CHECK(a4 == T{4}); in tests()
42 CHECK(a0 == T{0}); in tests()
44 CHECK(a1 == T{1}); in tests()
46 CHECK(a2 == T{2}); in tests()
48 CHECK(a3 == T{3}); in tests()
[all …]

123