testLookupTable.cc File Reference
#include "squid.h"
#include "base/LookupTable.h"
#include "testLookupTable.h"
#include "unitTestMain.h"
Include dependency graph for testLookupTable.cc:

Go to the source code of this file.
Enumerations | |
enum | EnumData { ENUM_1, ENUM_2, ENUM_3, ENUM_4, ENUM_5, ENUM_6, ENUM_7, ENUM_INVALID } |
Functions | |
CPPUNIT_TEST_SUITE_REGISTRATION (testLookupTable) | |
Variables | |
static const LookupTable< EnumData >::Record | tableData [] |
Enumeration Type Documentation
◆ EnumData
enum EnumData |
Enumerator | |
---|---|
ENUM_1 | |
ENUM_2 | |
ENUM_3 | |
ENUM_4 | |
ENUM_5 | |
ENUM_6 | |
ENUM_7 | |
ENUM_INVALID |
Definition at line 16 of file testLookupTable.cc.
Function Documentation
◆ CPPUNIT_TEST_SUITE_REGISTRATION()
CPPUNIT_TEST_SUITE_REGISTRATION | ( | testLookupTable | ) |
Variable Documentation
◆ tableData
|
static |
Initial value:
= {
{"one", ENUM_1},
{"two", ENUM_2},
{"three", ENUM_3},
{"four", ENUM_4},
{"five", ENUM_5},
{"six", ENUM_6},
{"seven", ENUM_7},
{nullptr, ENUM_INVALID}
}
Definition at line 27 of file testLookupTable.cc.
Referenced by testLookupTable::testLookupTableLookup().