testTokenizer.cc File Reference
#include "squid.h"
#include "base/CharacterSet.h"
#include "compat/cppunit.h"
#include "parser/Tokenizer.h"
#include "unitTestMain.h"
Include dependency graph for testTokenizer.cc:

Go to the source code of this file.

Classes

class  TestTokenizer
 

Functions

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

Variables

SBuf text ("GET http://resource.com/path HTTP/1.1\r\n" "Host: resource.com\r\n" "Cookie: laijkpk3422r j1noin \r\n" "\r\n")
 
const CharacterSet alpha ("alpha","abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ")
 
const CharacterSet whitespace ("whitespace"," \r\n")
 
const CharacterSet crlf ("crlf","\r\n")
 
const CharacterSet tab ("tab","\t")
 
const CharacterSet numbers ("numbers","0123456789")
 

Function Documentation

◆ CPPUNIT_TEST_SUITE_REGISTRATION()

CPPUNIT_TEST_SUITE_REGISTRATION ( TestTokenizer  )

◆ main()

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

Definition at line 331 of file testTokenizer.cc.

References TestProgram::run().

Variable Documentation

◆ alpha

const CharacterSet alpha("alpha","abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ") ( "alpha"  ,
"abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ"   
)

◆ crlf

◆ numbers

const CharacterSet numbers("numbers","0123456789") ( "numbers"  ,
"0123456789"   
)

◆ tab

const CharacterSet tab("tab","\t") ( "tab"  ,
"\t"   
)

◆ text

SBuf text("GET http://resource.com/path HTTP/1.1\r\n" "Host: resource.com\r\n" "Cookie: laijkpk3422r j1noin \r\n" "\r\n") ( "GET http://resource.com/path HTTP/1.1\r\n" "Host: resource.com\r\n" "Cookie: laijkpk3422r j1noin \r\n" "\r\n"  )

◆ whitespace

 

Introduction

Documentation

Support

Miscellaneous

Web Site Translations

Mirrors