testSBuf.cc File Reference
#include "squid.h"
#include "base/CharacterSet.h"
#include "HttpReply.h"
#include "sbuf/Algorithms.h"
#include "sbuf/SBuf.h"
#include "sbuf/Stream.h"
#include "tests/SBufFindTest.h"
#include "tests/testSBuf.h"
#include "unitTestMain.h"
#include <iostream>
#include <stdexcept>
#include <unordered_map>
#include "event.h"
#include "MemObject.h"
Include dependency graph for testSBuf.cc:

Go to the source code of this file.

Classes

class  SBufSubstrAutoTest
 

Functions

 CPPUNIT_TEST_SUITE_REGISTRATION (testSBuf)
 
void eventAdd (const char *name, EVH *func, void *arg, double when, int, bool cbdata)
 
static int sign (int v)
 
static void testComparisonStdFull (const char *left, const char *right)
 
static void testComparisonStdN (const char *left, const char *right, const size_t n)
 
static void testComparisonStdOneWay (const char *left, const char *right)
 
static void testComparisonStd (const char *s1, const char *s2)
 

Variables

static char fox [] ="The quick brown fox jumped over the lazy dog"
 
static char fox1 [] ="The quick brown fox "
 
static char fox2 [] ="jumped over the lazy dog"
 
SBuf empty_sbuf
 
SBuf literal ("The quick brown fox jumped over the lazy dog")
 

Function Documentation

CPPUNIT_TEST_SUITE_REGISTRATION ( testSBuf  )
void eventAdd ( const char *  name,
EVH func,
void *  arg,
double  when,
int  ,
bool  cbdata 
)

Definition at line 29 of file testSBuf.cc.

static int sign ( int  v)
static
static void testComparisonStd ( const char *  s1,
const char *  s2 
)
static

Definition at line 314 of file testSBuf.cc.

References testComparisonStdOneWay().

Referenced by testSBuf::testComparisons().

static void testComparisonStdFull ( const char *  left,
const char *  right 
)
static

Definition at line 264 of file testSBuf.cc.

References sign().

Referenced by testComparisonStdOneWay().

static void testComparisonStdN ( const char *  left,
const char *  right,
const size_t  n 
)
static

Definition at line 284 of file testSBuf.cc.

References sign().

Referenced by testComparisonStdOneWay().

static void testComparisonStdOneWay ( const char *  left,
const char *  right 
)
static

Definition at line 304 of file testSBuf.cc.

References min(), testComparisonStdFull(), and testComparisonStdN().

Referenced by testSBuf::testComparisons(), and testComparisonStd().

Variable Documentation

SBuf empty_sbuf

Definition at line 44 of file testSBuf.cc.

char fox[] ="The quick brown fox jumped over the lazy dog"
static
char fox2[] ="jumped over the lazy dog"
static

 

Introduction

Documentation

Support

Miscellaneous

Web Site Translations

Mirrors