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()

int main ( int  argc,
char *  argv[] 
)

Definition at line 70 of file testLookupTable.cc.

References TestProgram::run().

Variable Documentation

◆ tableData

const LookupTable<EnumData>::Record 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}
}
@ ENUM_2
@ ENUM_7
@ ENUM_3
@ ENUM_5
@ ENUM_6
@ ENUM_INVALID
@ ENUM_1
@ ENUM_4

Definition at line 36 of file testLookupTable.cc.

Referenced by TestLookupTable::testLookupTableLookup().

 

Introduction

Documentation

Support

Miscellaneous

Web Site Translations

Mirrors