mirror of
https://github.com/XRPLF/clio.git
synced 2025-11-20 11:45:53 +00:00
@@ -27,6 +27,7 @@
|
||||
#include <any>
|
||||
#include <expected>
|
||||
#include <string>
|
||||
#include <utility>
|
||||
|
||||
using namespace util::async;
|
||||
using namespace ::testing;
|
||||
@@ -47,6 +48,14 @@ struct AnyOperationTests : Test {
|
||||
};
|
||||
using AnyOperationDeathTest = AnyOperationTests;
|
||||
|
||||
TEST_F(AnyOperationTests, Move)
|
||||
{
|
||||
EXPECT_CALL(mockOp, get()).WillOnce(Return(std::any{}));
|
||||
auto yoink = std::move(voidOp);
|
||||
auto res = yoink.get();
|
||||
ASSERT_TRUE(res);
|
||||
}
|
||||
|
||||
TEST_F(AnyOperationTests, VoidDataYieldsNoError)
|
||||
{
|
||||
EXPECT_CALL(mockOp, get()).WillOnce(Return(std::any{}));
|
||||
|
||||
Reference in New Issue
Block a user