Lines Matching refs:e
56 exp_int e; in TEST() local
57 EXPECT_TRUE(e.has_value()); in TEST()
58 EXPECT_EQ(0, e.value()); in TEST()
69 exp_int e; in TEST() local
70 exp_int e2 = e; in TEST()
72 EXPECT_TRUE(e.has_value()); in TEST()
74 EXPECT_EQ(0, e.value()); in TEST()
84 exp_int e; in TEST() local
85 exp_int e2 = std::move(e); in TEST()
87 EXPECT_TRUE(e.has_value()); in TEST()
89 EXPECT_EQ(0, e.value()); in TEST()
107 exp_double e = 3.3f; in TEST() local
108 exp_int e2 = e; in TEST()
110 EXPECT_TRUE(e.has_value()); in TEST()
112 EXPECT_EQ(3.3f, e.value()); in TEST()
117 exp_double e = 3.3f; in TEST() local
118 exp_int e2 = std::move(e); in TEST()
120 EXPECT_TRUE(e.has_value()); in TEST()
122 EXPECT_EQ(3.3f, e.value()); in TEST()
127 exp_int e = 3; in TEST() local
133 EXPECT_TRUE(e.has_value()); in TEST()
138 EXPECT_EQ(3, e.value()); in TEST()
146 exp_string e = std::move(hello); in TEST() local
148 EXPECT_TRUE(e.has_value()); in TEST()
149 EXPECT_EQ("hello", e.value()); in TEST()
154 exp_int e = 3.3f; // double to int in TEST() local
156 EXPECT_TRUE(e.has_value()); in TEST()
157 EXPECT_EQ(3, e.value()); in TEST()
165 exp_int e = unexp; in TEST() local
176 EXPECT_FALSE(e.has_value()); in TEST()
180 EXPECT_EQ(10, e.error()); in TEST()
187 exp_int e = unexpected(10); in TEST() local
192 EXPECT_FALSE(e.has_value()); in TEST()
196 EXPECT_EQ(10, e.error()); in TEST()
203 exp_string e(std::in_place, 5, 'a'); in TEST() local
204 EXPECT_TRUE(e.has_value()); in TEST()
205 EXPECT_EQ("aaaaa", e.value()); in TEST()
234 exp_int e = 10; in TEST() local
236 e = e2; in TEST()
238 EXPECT_EQ(20, e.value()); in TEST()
258 exp_int e = 10; in TEST() local
259 e = 20; in TEST()
260 EXPECT_EQ(20, e.value()); in TEST()
277 exp_int e = 10; in TEST() local
278 e = unexpected(30); in TEST()
279 EXPECT_FALSE(e.has_value()); in TEST()
280 EXPECT_EQ(30, e.error()); in TEST()
300 exp_string e = "hello"; in TEST() local
301 e = std::move(world); in TEST()
303 EXPECT_TRUE(e.has_value()); in TEST()
304 EXPECT_EQ("world", e.value()); in TEST()
310 exp_string e = "hello"; in TEST() local
311 e = unexpected(std::move(world)); in TEST()
313 EXPECT_FALSE(e.has_value()); in TEST()
314 EXPECT_EQ("world", e.error()); in TEST()
334 exp_void e = unexpected(10); in TEST() local
335 ASSERT_FALSE(e.has_value()); in TEST()
336 e.emplace(); in TEST()
337 EXPECT_TRUE(e.has_value()); in TEST()
341 exp_int e = 10; in TEST() local
343 e.swap(e2); in TEST()
345 EXPECT_TRUE(e.has_value()); in TEST()
347 EXPECT_EQ(20, e.value()); in TEST()
359 exp_int e = unexpected(10); in TEST() local
361 e.swap(e2); in TEST()
362 EXPECT_FALSE(e.has_value()); in TEST()
364 EXPECT_EQ(20, e.error()); in TEST()
377 exp_int e = 10; in TEST() local
379 e.swap(e2); in TEST()
380 EXPECT_FALSE(e.has_value()); in TEST()
382 EXPECT_EQ(30, e.error()); in TEST()
410 exp_int e = 10; in TEST() local
411 EXPECT_TRUE(e.ok()); in TEST()
412 EXPECT_TRUE(e.has_value()); in TEST()
420 exp_int e = 10; in TEST() local
421 EXPECT_EQ(10, e.value()); in TEST()
422 EXPECT_EQ(10, e.value_or(20)); in TEST()
430 exp_int e = 10; in TEST() local
432 EXPECT_TRUE(e == e2); in TEST()
433 EXPECT_TRUE(e2 == e); in TEST()
434 EXPECT_FALSE(e != e2); in TEST()
435 EXPECT_FALSE(e2 != e); in TEST()
446 exp_int e = 10; in TEST() local
448 EXPECT_FALSE(e == e2); in TEST()
449 EXPECT_FALSE(e2 == e); in TEST()
450 EXPECT_TRUE(e != e2); in TEST()
451 EXPECT_TRUE(e2 != e); in TEST()
455 exp_int e = 10; in TEST() local
457 EXPECT_FALSE(e == e2); in TEST()
458 EXPECT_FALSE(e2 == e); in TEST()
459 EXPECT_TRUE(e != e2); in TEST()
460 EXPECT_TRUE(e2 != e); in TEST()
471 exp_int e = unexpected(10); in TEST() local
473 EXPECT_TRUE(e == e2); in TEST()
474 EXPECT_TRUE(e2 == e); in TEST()
475 EXPECT_FALSE(e != e2); in TEST()
476 EXPECT_FALSE(e2 != e); in TEST()
487 exp_int e = unexpected(10); in TEST() local
489 EXPECT_FALSE(e == e2); in TEST()
490 EXPECT_FALSE(e2 == e); in TEST()
491 EXPECT_TRUE(e != e2); in TEST()
492 EXPECT_TRUE(e2 != e); in TEST()
503 exp_int e = unexpected(10); in TEST() local
505 EXPECT_TRUE(e == error); in TEST()
506 EXPECT_TRUE(error == e); in TEST()
507 EXPECT_FALSE(e != error); in TEST()
508 EXPECT_FALSE(error != e); in TEST()
519 exp_int e = unexpected(10); in TEST() local
521 EXPECT_FALSE(e == error); in TEST()
522 EXPECT_FALSE(error == e); in TEST()
523 EXPECT_TRUE(e != error); in TEST()
524 EXPECT_TRUE(error != e); in TEST()
535 expected<int,int> e = 10; in TEST() local
537 EXPECT_TRUE(e == e2); in TEST()
539 EXPECT_FALSE(e == e2); in TEST()
664 exp_track e("hello"); in TEST() local
673 exp_track e2 = e; in TEST()
682 exp_track e3 = std::move(e); in TEST()
787 expected<exp_string, std::string> e = "hello"; in TEST() local
789 EXPECT_TRUE(e.ok()); in TEST()
790 EXPECT_TRUE(e.has_value()); in TEST()
791 EXPECT_TRUE(e.value().has_value()); in TEST()
792 EXPECT_TRUE(e->ok()); in TEST()
793 EXPECT_EQ("hello", e.value().value()); in TEST()
817 constexpr exp_int e(3); in TEST() local
824 static_assert(exp_int(e).value() == 3); in TEST()
857 expected<AssertNotConstructed, int> e(unexpected(42)); in TEST() local
858 EXPECT_FALSE(e.has_value()); in TEST()
859 EXPECT_EQ(42, e.error()); in TEST()
864 exp_ptr e(std::make_unique<int>(3)); in TEST()
867 EXPECT_TRUE(e.has_value()); in TEST()
869 EXPECT_EQ(3, *(e.value())); in TEST()
872 e2 = std::move(e); in TEST()
873 EXPECT_TRUE(e.has_value()); in TEST()