2
0
mirror of https://gitlab.isc.org/isc-projects/kea synced 2025-08-31 05:55:28 +00:00

[#3245] Remove wrong doxygen use in UT

modified:   alarm_unittests.cc
modified:   monitored_duration_unittests.cc
This commit is contained in:
Thomas Markwalder
2024-02-21 11:46:35 -05:00
parent 5633edbc05
commit 88bbd44e0d
2 changed files with 41 additions and 41 deletions

View File

@@ -20,7 +20,7 @@ using namespace boost::posix_time;
namespace { namespace {
/// @brief Verifies Alarm construction. // Verifies Alarm construction.
TEST(Alarm, validConstructors) { TEST(Alarm, validConstructors) {
AlarmPtr alarm; AlarmPtr alarm;
@@ -69,7 +69,7 @@ TEST(Alarm, validConstructors) {
EXPECT_GE(alarm->getStosTime(), start_time); EXPECT_GE(alarm->getStosTime(), start_time);
} }
/// @brief Verifies Alarm invalid construction. // Verifies Alarm invalid construction.
TEST(Alarm, invalidConstructors) { TEST(Alarm, invalidConstructors) {
AlarmPtr alarm; AlarmPtr alarm;
@@ -168,40 +168,40 @@ TEST(Alarm, clearAndDisable) {
EXPECT_EQ(alarm->getLastHighWaterReport(), PktEvent::EMPTY_TIME()); EXPECT_EQ(alarm->getLastHighWaterReport(), PktEvent::EMPTY_TIME());
} }
/// @brief Verifies the result of Alarm::checkSample() over the range of scenarios. // Verifies the result of Alarm::checkSample() over the range of scenarios.
/// The alarm is created in either the CLEAR or TRIGGERED state and then checkSample() // The alarm is created in either the CLEAR or TRIGGERED state and then checkSample()
/// is invoked. The scenarios tested are described by the table below: // is invoked. The scenarios tested are described by the table below:
/// //
/// ``` // ```
/// INPUT | OUTPUT // INPUT | OUTPUT
/// Test sample relationship Input Report Int.| // Test sample relationship Input Report Int.|
// to the thresholds State Elapsed | Report State Stos Last Report // to the thresholds State Elapsed | Report State Stos Last Report
/// -------------------------------------------------|---------------------------------- // -------------------------------------------------|----------------------------------
/// sample < low_water C false | false C - - // sample < low_water C false | false C - -
/// sample < low_water C true | false C - - // sample < low_water C true | false C - -
/// sample < low_water T false | true C updated reset // sample < low_water T false | true C updated reset
/// sample < low_water T true | true C updated reset // sample < low_water T true | true C updated reset
/// | // |
/// sample == low_water C false | false C - - // sample == low_water C false | false C - -
/// sample == low_water C true | false C - - // sample == low_water C true | false C - -
/// sample == low_water T false | false T - - // sample == low_water T false | false T - -
/// sample == low_water T true | true T updated // sample == low_water T true | true T updated
/// | // |
/// low_water < sample < high_water C false | false C - - // low_water < sample < high_water C false | false C - -
/// low_water < sample < high_water C true | false C - - // low_water < sample < high_water C true | false C - -
/// low_water < sample < high_water T false | false T - - // low_water < sample < high_water T false | false T - -
/// low_water < sample < high_water T true | true T - updated // low_water < sample < high_water T true | true T - updated
/// | // |
/// sample == high water C false | false C - - // sample == high water C false | false C - -
/// sample == high water C true | false C - - // sample == high water C true | false C - -
/// sample == high water T false | false T - - // sample == high water T false | false T - -
/// sample == high water T true | true T - updated // sample == high water T true | true T - updated
/// | // |
/// sample > high water C false | true T updated set // sample > high water C false | true T updated set
/// sample > high water C true | true T updated set // sample > high water C true | true T updated set
/// sample > high water T false | false T - - // sample > high water T false | false T - -
/// sample > high water T true | true T - updated // sample > high water T true | true T - updated
/// ``` // ```
TEST(Alarm, checkSample) { TEST(Alarm, checkSample) {
// Create mnemonic constants. // Create mnemonic constants.
Duration low_water(milliseconds(100)); Duration low_water(milliseconds(100));

View File

@@ -20,7 +20,7 @@ using namespace boost::posix_time;
namespace { namespace {
/// @brief Exercises the basic functions of DurationDataInterval. // Exercises the basic functions of DurationDataInterval.
TEST(DurationDataInterval, basics) { TEST(DurationDataInterval, basics) {
auto start_time = PktEvent::now(); auto start_time = PktEvent::now();
@@ -80,7 +80,7 @@ TEST(DurationDataInterval, basics) {
EXPECT_EQ(interval->getAverageDuration(), Duration(microseconds(112500))); EXPECT_EQ(interval->getAverageDuration(), Duration(microseconds(112500)));
} }
/// @brief Exercises the basic functions of DurationDataInterval. // Exercises the basic functions of DurationDataInterval.
TEST(DurationKey, basics) { TEST(DurationKey, basics) {
DurationKeyPtr key; DurationKeyPtr key;
@@ -115,7 +115,7 @@ TEST(DurationKey, basics) {
"Query type not supported by monitoring: ADVERTISE"); "Query type not supported by monitoring: ADVERTISE");
} }
/// @brief Verify v4 message pair validation works. // Verify v4 message pair validation works.
TEST(DurationKey, validateMessagePairs4) { TEST(DurationKey, validateMessagePairs4) {
// Defines a test scenario. // Defines a test scenario.
struct Scenario { struct Scenario {
@@ -165,7 +165,7 @@ TEST(DurationKey, validateMessagePairs4) {
} }
} }
/// @brief Verify v4 message pair validation works. // Verify v4 message pair validation works.
TEST(DurationKey, validateMessagePairs6) { TEST(DurationKey, validateMessagePairs6) {
// Defines a test scenario. // Defines a test scenario.
struct Scenario { struct Scenario {
@@ -232,7 +232,7 @@ TEST(DurationKey, validateMessagePairs6) {
} }
} }
/// @brief Verifies MonitoredDuration valid construction. // Verifies MonitoredDuration valid construction.
TEST(MonitoredDuration, validConstructors) { TEST(MonitoredDuration, validConstructors) {
MonitoredDurationPtr mond; MonitoredDurationPtr mond;
Duration interval_duration(seconds(60)); Duration interval_duration(seconds(60));
@@ -272,7 +272,7 @@ TEST(MonitoredDuration, validConstructors) {
EXPECT_FALSE(mond->getPreviousInterval()); EXPECT_FALSE(mond->getPreviousInterval());
} }
/// @brief Verifies MonitoredDuration invalid construction. // Verifies MonitoredDuration invalid construction.
TEST(MonitoredDuration, invalidConstructors) { TEST(MonitoredDuration, invalidConstructors) {
MonitoredDurationPtr mond; MonitoredDurationPtr mond;