testLookupTable.cc File Reference
#include "squid.h"
#include "base/LookupTable.h"
#include "compat/cppunit.h"
#include "unitTestMain.h"
Include dependency graph for testLookupTable.cc:
Go to the source code of this file.
Classes | |
class | TestLookupTable |
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) | |
int | main (int argc, char *argv[]) |
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 25 of file testLookupTable.cc.
Function Documentation
◆ CPPUNIT_TEST_SUITE_REGISTRATION()
CPPUNIT_TEST_SUITE_REGISTRATION | ( | TestLookupTable | ) |
◆ main()
Definition at line 70 of file testLookupTable.cc.
References TestProgram::run().
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 36 of file testLookupTable.cc.
Referenced by TestLookupTable::testLookupTableLookup().