EXPECT_EQ("type=V4, 192.0.3.128-192.0.3.255",
pools2[1]->toText());
// There shouldn't be any TA or PD pools
- EXPECT_THROW((*subnet)->getPools(Lease::TYPE_TA).empty(), BadValue);
- EXPECT_THROW((*subnet)->getPools(Lease::TYPE_PD).empty(), BadValue);
+ EXPECT_THROW((*subnet)->getPools(Lease::TYPE_TA), BadValue);
+ EXPECT_THROW((*subnet)->getPools(Lease::TYPE_PD), BadValue);
}
// Test verifies that a subnet with pool values that do not belong to that
/// qualifying suffix.
TEST_F(D2ClientMgrParamsTest, qualifyNameWithoutDuplicatingSuffix) {
D2ClientMgr mgr;
- bool do_not_dot = false;
bool do_dot = true;
// Create enabled configuration
// Check that blank lines are skipped when reading from a file.
TEST_F(CSVFileTest, parseContentWithBlankLines) {
- for (std::string const& content : {
+ for (char const* const& content : {
// Single intermediary blank line
"animal,age,color\n"
"cat,4,white\n"
-// Copyright (C) 2011-2018 Internet Systems Consortium, Inc. ("ISC")
+// Copyright (C) 2011-2021 Internet Systems Consortium, Inc. ("ISC")
//
// This Source Code Form is subject to the terms of the Mozilla Public
// License, v. 2.0. If a copy of the MPL was not distributed with this
TEST(asioutil, readUint16) {
// Reference buffer
- uint8_t data[2];
+ uint8_t data[2] = {0, 0};
InputBuffer buffer(data, sizeof(data));
// Avoid possible compiler warnings by only setting uint8_t variables to