#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"

Go to the source code of this file.
Classes | |
class | SBufSubstrAutoTest |
Functions | |
CPPUNIT_TEST_SUITE_REGISTRATION (testSBuf) | |
void | eventAdd (const char *, EVH *, void *, double, int, bool) |
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 const char | fox [] = "The quick brown fox jumped over the lazy dog" |
static const char | fox1 [] = "The quick brown fox " |
static const 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()
CPPUNIT_TEST_SUITE_REGISTRATION | ( | testSBuf | ) |
◆ eventAdd()
Definition at line 29 of file testSBuf.cc.
References EventScheduler::GetInstance(), and EventScheduler::schedule().
◆ sign()
Definition at line 254 of file testSBuf.cc.
Referenced by testSBuf::testComparisons(), testComparisonStdFull(), and testComparisonStdN().
◆ testComparisonStd()
|
static |
Definition at line 314 of file testSBuf.cc.
References s1, and testComparisonStdOneWay().
Referenced by testSBuf::testComparisons().
◆ testComparisonStdFull()
|
static |
Definition at line 264 of file testSBuf.cc.
References sign().
Referenced by testComparisonStdOneWay().
◆ testComparisonStdN()
|
static |
Definition at line 284 of file testSBuf.cc.
References sign().
Referenced by testComparisonStdOneWay().
◆ testComparisonStdOneWay()
|
static |
Definition at line 304 of file testSBuf.cc.
References min(), testComparisonStdFull(), and testComparisonStdN().
Referenced by testSBuf::testComparisons(), and testComparisonStd().
Variable Documentation
◆ empty_sbuf
SBuf empty_sbuf |
Definition at line 44 of file testSBuf.cc.
Referenced by testSBuf::testSBufConstructDestruct().
◆ fox
|
static |
Definition at line 37 of file testSBuf.cc.
Referenced by testSBuf::testAppendf(), testSBuf::testEqualityTest(), testSBuf::testRawContent(), testSBuf::testReserve(), testSBuf::testSBufConstructDestruct(), testSBuf::testSBufHash(), and testSBuf::testSBufLength().
◆ fox1
|
static |
Definition at line 38 of file testSBuf.cc.
Referenced by testSBuf::testAppendCString(), testSBuf::testAppendSBuf(), testSBuf::testCopy(), testSBuf::testRawSpace(), testSBuf::testSBufHash(), testSBuf::testSBufStream(), and testSBuf::testStartsWith().
◆ fox2
|
static |
Definition at line 39 of file testSBuf.cc.
Referenced by testSBuf::testAppendCString(), testSBuf::testRawSpace(), testSBuf::testSBufStream(), and testSBuf::testStartsWith().
◆ literal
Referenced by testSBuf::testAppendCString(), testSBuf::testChop(), testSBuf::testConsume(), testSBuf::testCopy(), testSBuf::testFindFirstNotOf(), testSBuf::testFindFirstOf(), testSBuf::testGrow(), testSBuf::testRawContent(), testSBuf::testRawSpace(), testSBuf::testRFindChar(), testSBuf::testRFindSBuf(), testSBuf::testSBufConstructDestruct(), testSBuf::testSBufHash(), testSBuf::testSBufStream(), testSBuf::testStartsWith(), testSBuf::testStringOps(), testSBuf::testSubscriptOp(), testSBuf::testSubscriptOpFail(), and testSBuf::testSubstr().