Lines Matching refs:Any
13 using brillo::Any;
15 TEST(Any, Empty) { in TEST() argument
16 Any val; in TEST()
19 Any val2 = val; in TEST()
23 Any val3 = std::move(val); in TEST()
28 TEST(Any, SimpleTypes) { in TEST() argument
29 Any val(20); in TEST()
34 Any val2(3.1415926); in TEST()
40 Any val3(std::string("blah")); in TEST()
45 TEST(Any, Clear) { in TEST() argument
46 Any val('x'); in TEST()
54 TEST(Any, Assignments) { in TEST() argument
55 Any val(20); in TEST()
66 Any val2; in TEST()
97 TEST(Any, Enums) { in TEST() argument
99 Any val(Dummy::bar); in TEST()
112 TEST(Any, Integers) { in TEST() argument
113 Any val(14); in TEST()
141 TEST(Any, Pointers) { in TEST() argument
142 Any val("abc"); // const char* in TEST()
160 TEST(Any, Arrays) { in TEST() argument
170 Any val = int_array; in TEST()
186 TEST(Any, References) { in TEST() argument
195 Any val(std::ref(a)); // int& in TEST()
201 Any val2(std::cref(a)); // const int& in TEST()
209 TEST(Any, CustomTypes) { in TEST() argument
214 Any val(Person{"Jack", 40}); in TEST()
215 Any val2 = val; in TEST()
225 TEST(Any, Swap) { in TEST() argument
226 Any val(12); in TEST()
227 Any val2(2.7); in TEST()
240 TEST(Any, TypeMismatch) { in TEST() argument
241 Any val(12); in TEST()
250 Any empty; in TEST()
254 TEST(Any, TryGet) { in TEST() argument
255 Any val(12); in TEST()
256 Any empty; in TEST()
262 TEST(Any, Compare_Int) { in TEST() argument
263 Any int1{12}; in TEST()
264 Any int2{12}; in TEST()
265 Any int3{20}; in TEST()
270 TEST(Any, Compare_String) { in TEST() argument
271 Any str1{std::string{"foo"}}; in TEST()
272 Any str2{std::string{"foo"}}; in TEST()
273 Any str3{std::string{"bar"}}; in TEST()
278 TEST(Any, Compare_Array) { in TEST() argument
279 Any vec1{std::vector<int>{1, 2}}; in TEST()
280 Any vec2{std::vector<int>{1, 2}}; in TEST()
281 Any vec3{std::vector<int>{1, 2, 3}}; in TEST()
286 TEST(Any, Compare_Empty) { in TEST() argument
287 Any empty1; in TEST()
288 Any empty2; in TEST()
289 Any int1{1}; in TEST()
295 TEST(Any, Compare_NonComparable) { in TEST() argument
300 Any person1(Person{"Jack", 40}); in TEST()
301 Any person2 = person1; in TEST()
302 Any person3(Person{"Jill", 20}); in TEST()
308 TEST(Any, GetUndecoratedTypeName) { in TEST() argument
309 Any val; in TEST()