mirror of
https://github.com/openappsec/openappsec.git
synced 2025-09-29 19:24:26 +03:00
Jan_31_2024-Dev
This commit is contained in:
9
core/core_ut/maybe_res_ut.cc
Executable file → Normal file
9
core/core_ut/maybe_res_ut.cc
Executable file → Normal file
@@ -359,6 +359,15 @@ TEST(Maybe, maybe_void_error_passing)
|
||||
EXPECT_EQ("error", err2.getErr());
|
||||
}
|
||||
|
||||
TEST(Maybe, maybe_void_error_passing2)
|
||||
{
|
||||
Maybe<void> err1 = genError("error");
|
||||
Maybe<void> err2 = err1.passErr();
|
||||
|
||||
EXPECT_FALSE(err2.ok());
|
||||
EXPECT_EQ("error", err2.getErr());
|
||||
}
|
||||
|
||||
TEST(Maybe, printing)
|
||||
{
|
||||
ostringstream os;
|
||||
|
Reference in New Issue
Block a user