Home
last modified time | relevance | path

Searched refs:IntExp (Results 1 – 1 of 1) sorted by relevance

/frameworks/native/libs/ftl/
Dexpected_test.cpp28 using IntExp = ftl::Expected<int, std::errc>; typedef
35 EXPECT_TRUE(IntExp().has_value()); in TEST()
36 EXPECT_EQ(IntExp(), IntExp(0)); in TEST()
42 ASSERT_TRUE(IntExp(42).has_value()); in TEST()
43 EXPECT_EQ(42, IntExp(42).value()); in TEST()
55 EXPECT_FALSE(IntExp(123).has_error([](auto) { return true; })); in TEST()
56 EXPECT_FALSE(IntExp(ftl::Unexpected(std::errc::io_error)).has_error([](auto) { return false; })); in TEST()
64 EXPECT_EQ(ftl::Optional(-1), IntExp(-1).value_opt()); in TEST()
65 EXPECT_EQ(std::nullopt, IntExp(ftl::Unexpected(std::errc::broken_pipe)).value_opt()); in TEST()
82 IntExp increment_try(IntExp exp) { in increment_try()
[all …]