testEnumIterator.cc File Reference
#include "squid.h"
#include "base/EnumIterator.h"
#include "compat/cppunit.h"
#include "unitTestMain.h"
#include <cppunit/TestAssert.h>
Include dependency graph for testEnumIterator.cc:

Go to the source code of this file.

Classes

class  TestEnumIterator
 

Enumerations

enum  TestEnum {
  TestEnum::enumBegin_ = 0,
  TestEnum::zero = enumBegin_,
  TestEnum::one,
  TestEnum::two,
  TestEnum::three,
  TestEnum::four,
  TestEnum::enumEnd_
}
 
enum  UnsignedTestEnum : unsigned char {
  UnsignedTestEnum::enumBegin_ = 0,
  UnsignedTestEnum::zero = enumBegin_,
  UnsignedTestEnum::one,
  UnsignedTestEnum::two,
  UnsignedTestEnum::three,
  UnsignedTestEnum::four,
  UnsignedTestEnum::enumEnd_
}
 

Functions

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

Enumeration Type Documentation

◆ TestEnum

enum TestEnum
strong
Enumerator
enumBegin_ 
zero 
one 
two 
three 
four 
enumEnd_ 

Definition at line 38 of file testEnumIterator.cc.

◆ UnsignedTestEnum

enum UnsignedTestEnum : unsigned char
strong
Enumerator
enumBegin_ 
zero 
one 
two 
three 
four 
enumEnd_ 

Definition at line 48 of file testEnumIterator.cc.

Function Documentation

◆ CPPUNIT_TEST_SUITE_REGISTRATION()

CPPUNIT_TEST_SUITE_REGISTRATION ( TestEnumIterator  )

◆ main()

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

Definition at line 166 of file testEnumIterator.cc.

References TestProgram::run().

 

Introduction

Documentation

Support

Miscellaneous