testMultipleLoads();
}
-struct TestScenario {
+struct TestScenario0 {
std::string description_;
std::string command_txt_;
std::string exp_response_;
- std::string exp_result_json_;
};
// Verifies detection of invalid v4 input parameters.
// Initialize lease manager
initLeaseMgr4();
- std::vector<TestScenario> tests = {
+ std::vector<TestScenario0> tests = {
{
"arguments is not a map",
"{\n"
}
}
+struct TestScenario {
+ std::string description_;
+ std::string command_txt_;
+ std::string exp_response_;
+ std::string exp_result_json_;
+};
+
// Verifies result content for valid v4 statistic commands.
// These test scenarios are all valid, and not expected to throw.
TEST_F(StatCmdsTest, statLease4GetValid) {
// Initialize lease manager
initLeaseMgr6();
- std::vector<TestScenario> tests = {
+ std::vector<TestScenario0> tests = {
{
"arguments not a map",
"{\n"
} catch (const Exception& ex) {
EXPECT_EQ(ex.getMessage(), std::string(teststring));
EXPECT_EQ(ex.getFile(), std::string(__FILE__));
- EXPECT_EQ(ex.getLine(), __LINE__ - 4);
+ size_t expected = 5;
+ EXPECT_EQ(expected, __LINE__ - ex.getLine());
}
}
} catch (const Exception& ex) {
EXPECT_EQ(ex.getMessage(), std::string(teststring));
EXPECT_EQ(ex.getFile(), std::string(__FILE__));
- EXPECT_EQ(ex.getLine(), __LINE__ - 4);
+ size_t expected = 5;
+ EXPECT_EQ(expected, __LINE__ - ex.getLine());
}
}
if (nfds == 1) {
// Read status
const ssize_t bytes_read = read(fd, &result, sizeof(result));
- EXPECT_EQ(sizeof(result), bytes_read);
+ EXPECT_EQ(static_cast<ssize_t>(sizeof(result)), bytes_read);
}
return (result);