Searched refs:StringExp (Results 1 – 2 of 2) sorted by relevance
29 using StringExp = ftl::Expected<std::string, std::errc>; typedef38 EXPECT_TRUE(StringExp().has_value()); in TEST()39 EXPECT_EQ(StringExp(), StringExp("")); in TEST()45 ASSERT_TRUE(StringExp("test").has_value()); in TEST()46 EXPECT_EQ("test"s, StringExp("test").value()); in TEST()49 const auto exp = StringExp(ftl::Unexpected(std::errc::invalid_argument)); in TEST()58 EXPECT_TRUE(StringExp(ftl::Unexpected(std::errc::permission_denied)).has_error([](auto e) { in TEST()68 const StringExp exp("foo"s); in TEST()74 StringExp exp("foobar"s); in TEST()93 StringExp repeat_try(StringExp exp) { in repeat_try()[all …]
211 using StringExp = ftl::Expected<std::string, std::errc>; in TEST() typedef217 EXPECT_EQ(StringExp("abc"s), Optional("abc"s).ok_or(std::errc::protocol_error)); in TEST()218 EXPECT_EQ(StringExp(ftl::Unexpected(std::errc::protocol_error)), in TEST()