Lines Matching full:lhs

24 template <class LHS, class RHS>
26 assert(LHS::count == 0); in test_copy_assign()
28 LHS::reset(); in test_copy_assign()
31 std::any lhs = LHS(1); in test_copy_assign() local
34 assert(LHS::count == 1); in test_copy_assign()
38 lhs = rhs; in test_copy_assign()
41 assert(LHS::count == 0); in test_copy_assign()
44 assertContains<RHS>(lhs, 2); in test_copy_assign()
47 assert(LHS::count == 0); in test_copy_assign()
51 template <class LHS>
53 assert(LHS::count == 0); in test_copy_assign_empty()
54 LHS::reset(); in test_copy_assign_empty()
56 std::any lhs; in test_copy_assign_empty() local
57 const std::any rhs = LHS(42); in test_copy_assign_empty()
59 assert(LHS::count == 1); in test_copy_assign_empty()
60 assert(LHS::copied == 0); in test_copy_assign_empty()
62 lhs = rhs; in test_copy_assign_empty()
64 assert(LHS::copied == 1); in test_copy_assign_empty()
65 assert(LHS::count == 2); in test_copy_assign_empty()
67 assertContains<LHS>(lhs, 42); in test_copy_assign_empty()
68 assertContains<LHS>(rhs, 42); in test_copy_assign_empty()
70 assert(LHS::count == 0); in test_copy_assign_empty()
71 LHS::reset(); in test_copy_assign_empty()
73 std::any lhs = LHS(1); in test_copy_assign_empty() local
76 assert(LHS::count == 1); in test_copy_assign_empty()
77 assert(LHS::copied == 0); in test_copy_assign_empty()
79 lhs = rhs; in test_copy_assign_empty()
81 assert(LHS::copied == 0); in test_copy_assign_empty()
82 assert(LHS::count == 0); in test_copy_assign_empty()
84 assertEmpty<LHS>(lhs); in test_copy_assign_empty()
87 assert(LHS::count == 0); in test_copy_assign_empty()
132 [](std::any& lhs, const std::any& rhs) { in test_copy_assign_throws() argument
134 lhs = rhs; in test_copy_assign_throws()
144 std::any lhs; in test_copy_assign_throws() local
148 try_throw(lhs, rhs); in test_copy_assign_throws()
151 assertEmpty<Tp>(lhs); in test_copy_assign_throws()
155 std::any lhs = small(2); in test_copy_assign_throws() local
160 try_throw(lhs, rhs); in test_copy_assign_throws()
164 assertContains<small>(lhs, 2); in test_copy_assign_throws()
168 std::any lhs = large(2); in test_copy_assign_throws() local
173 try_throw(lhs, rhs); in test_copy_assign_throws()
177 assertContains<large>(lhs, 2); in test_copy_assign_throws()