test: Add more tests for warnings (#1532)

For #1518.
This commit is contained in:
Sergey Kuznetsov
2024-07-10 13:33:59 +01:00
committed by GitHub
parent d227c53ef3
commit 5bcc11b347

View File

@@ -53,6 +53,7 @@ TEST_F(RPCDefaultProcessorTest, ValidInput)
auto const ret = processor(handler, input, Context{yield});
ASSERT_TRUE(ret); // no error
EXPECT_TRUE(ret.warnings.empty());
});
}
@@ -68,6 +69,7 @@ TEST_F(RPCDefaultProcessorTest, NoInputVaildCall)
auto const ret = processor(handler, input, Context{yield});
ASSERT_TRUE(ret); // no error
EXPECT_TRUE(ret.warnings.empty());
});
}
@@ -83,5 +85,6 @@ TEST_F(RPCDefaultProcessorTest, InvalidInput)
auto const ret = processor(handler, input, Context{yield});
ASSERT_FALSE(ret); // returns error
EXPECT_TRUE(ret.warnings.empty());
});
}