• Home
  • Raw
  • Download

Lines Matching refs:e3

64   exp_void e3;  in TEST()  local
65 EXPECT_TRUE(e3.has_value()); in TEST()
77 exp_void e3; in TEST() local
78 exp_void e4 = e3; in TEST()
79 EXPECT_TRUE(e3.has_value()); in TEST()
92 exp_string e3(std::string("hello")); in TEST() local
93 exp_string e4 = std::move(e3); in TEST()
95 EXPECT_TRUE(e3.has_value()); in TEST()
97 EXPECT_EQ("", e3.value()); // e3 is moved in TEST()
129 exp_string e3 = std::string("hello"); in TEST() local
135 EXPECT_TRUE(e3.has_value()); in TEST()
140 EXPECT_EQ("hello", e3.value()); in TEST()
171 exp_string e3 = unexp3; in TEST() local
178 EXPECT_FALSE(e3.has_value()); in TEST()
182 EXPECT_EQ("error", e3.error()); in TEST()
189 exp_string e3 = unexpected(std::string("error")); in TEST() local
194 EXPECT_FALSE(e3.has_value()); in TEST()
198 EXPECT_EQ("error", e3.error()); in TEST()
211 exp_pair e3({"hello", 30}); in TEST() local
212 EXPECT_TRUE(e3.has_value()); in TEST()
213 EXPECT_EQ("hello",e3->first); in TEST()
214 EXPECT_EQ(30,e3->second); in TEST()
241 exp_int e3 = 10; in TEST() local
243 e3 = std::move(e4); in TEST()
245 EXPECT_EQ(20, e3.value()); in TEST()
266 exp_string e3 = "hello"; in TEST() local
267 e3 = "world"; in TEST()
268 EXPECT_EQ("world", e3.value()); in TEST()
287 exp_string e3 = "hello"; in TEST() local
288 e3 = unexpected("world"); in TEST()
289 EXPECT_FALSE(e3.has_value()); in TEST()
290 EXPECT_EQ("world", e3.error()); in TEST()
350 exp_void e3; in TEST() local
352 e3.swap(e4); in TEST()
354 EXPECT_TRUE(e3.has_value()); in TEST()
367 exp_void e3 = unexpected(10); in TEST() local
369 e3.swap(e4); in TEST()
370 EXPECT_FALSE(e3.has_value()); in TEST()
372 EXPECT_EQ(20, e3.error()); in TEST()
385 exp_void e3; in TEST() local
387 e3.swap(e4); in TEST()
388 EXPECT_FALSE(e3.has_value()); in TEST()
390 EXPECT_EQ(10, e3.error()); in TEST()
437 exp_void e3; in TEST() local
439 EXPECT_TRUE(e3 == e4); in TEST()
440 EXPECT_TRUE(e4 == e3); in TEST()
441 EXPECT_FALSE(e3 != e4); in TEST()
442 EXPECT_FALSE(e4 != e3); in TEST()
462 exp_void e3; in TEST() local
464 EXPECT_FALSE(e3 == e4); in TEST()
465 EXPECT_FALSE(e4 == e3); in TEST()
466 EXPECT_TRUE(e3 != e4); in TEST()
467 EXPECT_TRUE(e4 != e3); in TEST()
478 exp_void e3 = unexpected(10); in TEST() local
480 EXPECT_TRUE(e3 == e4); in TEST()
481 EXPECT_TRUE(e4 == e3); in TEST()
482 EXPECT_FALSE(e3 != e4); in TEST()
483 EXPECT_FALSE(e4 != e3); in TEST()
494 exp_void e3 = unexpected(10); in TEST() local
496 EXPECT_FALSE(e3 == e4); in TEST()
497 EXPECT_FALSE(e4 == e3); in TEST()
498 EXPECT_TRUE(e3 != e4); in TEST()
499 EXPECT_TRUE(e4 != e3); in TEST()
541 expected<std::string_view,int> e3 = "hello"; in TEST() local
543 EXPECT_TRUE(e3 == e4); in TEST()
545 EXPECT_FALSE(e3 == e4); in TEST()
682 exp_track e3 = std::move(e); in TEST() local
800 expected<exp_string, std::string> e3 = exp_string(unexpected("world")); in TEST() local
801 EXPECT_TRUE(e3.has_value()); in TEST()
802 EXPECT_FALSE(e3.value().has_value()); in TEST()
803 EXPECT_TRUE(e3.ok()); in TEST()
804 EXPECT_FALSE(e3->ok()); in TEST()
805 EXPECT_EQ("world", e3.value().error()); in TEST()