testSBuf.h
Go to the documentation of this file.
1/*
2 * Copyright (C) 1996-2022 The Squid Software Foundation and contributors
3 *
4 * Squid software is distributed under GPLv2+ license and includes
5 * contributions from numerous individuals and organizations.
6 * Please see the COPYING and CONTRIBUTORS files for details.
7 */
8
9#ifndef SQUID_SRC_TEST_TESTSBUF_H
10#define SQUID_SRC_TEST_TESTSBUF_H
11
12#include "compat/cppunit.h"
13
14#include "base/TextException.h"
15
16/*
17 * test the SBuf functionalities
18 */
19
20class testSBuf : public CPPUNIT_NS::TestFixture
21{
57// CPPUNIT_TEST( testDumpStats ); //fake test, to print alloc stats
59protected:
60 void commonInit();
63 void testEqualityTest();
64 void testAppendSBuf();
65 void testAppendCString();
67 void testAppendf();
68 void testPrintf();
69 void testSubscriptOp();
71 void testDumpStats();
72 void testComparisons();
73 void testConsume();
74 void testRawContent();
75 void testRawSpace();
76 void testChop();
77 void testChomp();
78 void testSubstr();
80 void testSBufLength();
81 void testFindChar();
82 void testFindSBuf();
83 void testRFindChar();
84 void testRFindSBuf();
86 void testCopy();
87 void testStringOps();
88 void testGrow();
89 void testReserve();
90 void testStartsWith();
91 void testSBufStream();
92 void testFindFirstOf();
93 void testFindFirstNotOf();
94 void testAutoFind();
95 void testStdStringOps();
96 void testIterators();
97 void testSBufHash();
98};
99
100#endif
101
an std::runtime_error with thrower location info
Definition: TextException.h:21
CPPUNIT_TEST(testFindFirstNotOf)
void testFindFirstNotOf()
Definition: testSBuf.cc:1005
void testRawContent()
Definition: testSBuf.cc:405
CPPUNIT_TEST(testCopy)
void testAppendSBuf()
Definition: testSBuf.cc:153
CPPUNIT_TEST(testAppendf)
void testAppendCString()
Definition: testSBuf.cc:183
CPPUNIT_TEST(testReserve)
CPPUNIT_TEST(testSBufStream)
CPPUNIT_TEST(testChop)
void testPrintf()
Definition: testSBuf.cc:174
CPPUNIT_TEST(testSubstr)
CPPUNIT_TEST(testIterators)
CPPUNIT_TEST(testSBufConstructDestructAfterMemInit)
void testRawSpace()
Definition: testSBuf.cc:418
void testAutoFind()
Definition: testSBuf.cc:1028
void testSBufHash()
Definition: testSBuf.cc:1081
void testRFindSBuf()
Definition: testSBuf.cc:718
CPPUNIT_TEST(testFindFirstOf)
void testStdStringOps()
Definition: testSBuf.cc:1035
void testStartsWith()
Definition: testSBuf.cc:947
void testFindSBuf()
Definition: testSBuf.cc:599
void testChop()
Definition: testSBuf.cc:429
CPPUNIT_TEST(testSBufHash)
CPPUNIT_TEST(testStringOps)
CPPUNIT_TEST(testRawSpace)
void commonInit()
CPPUNIT_TEST(testRFindSBuf)
CPPUNIT_TEST(testSubscriptOp)
void testSBufStream()
Definition: testSBuf.cc:964
CPPUNIT_TEST(testEqualityTest)
CPPUNIT_TEST(testRFindChar)
CPPUNIT_TEST_SUITE_END()
void testReserve()
Definition: testSBuf.cc:813
void testChomp()
Definition: testSBuf.cc:493
CPPUNIT_TEST_EXCEPTION(testSubscriptOpFail, TextException)
CPPUNIT_TEST(testSBufConstructDestruct)
void testSBufConstructDestruct()
Definition: testSBuf.cc:48
CPPUNIT_TEST(testFindChar)
CPPUNIT_TEST(testConsume)
void testStringOps()
Definition: testSBuf.cc:784
void testSearchFail()
CPPUNIT_TEST_SUITE(testSBuf)
CPPUNIT_TEST(testAutoFind)
CPPUNIT_TEST(testAppendStdString)
CPPUNIT_TEST(testComparisons)
void testEqualityTest()
Definition: testSBuf.cc:135
void testIterators()
Definition: testSBuf.cc:1044
CPPUNIT_TEST(testPrintf)
void testSBufLength()
Definition: testSBuf.cc:763
void testDumpStats()
Definition: testSBuf.cc:225
void testSubstr()
Definition: testSBuf.cc:530
void testAppendf()
Definition: testSBuf.cc:216
CPPUNIT_TEST(testAppendSBuf)
CPPUNIT_TEST(testStdStringOps)
CPPUNIT_TEST(testGrow)
CPPUNIT_TEST(testFindSBuf)
void testCopy()
Definition: testSBuf.cc:770
CPPUNIT_TEST(testAppendCString)
void testRFindChar()
Definition: testSBuf.cc:708
void testAppendStdString()
Definition: testSBuf.cc:191
void testSubscriptOpFail()
Definition: testSBuf.cc:246
void testConsume()
Definition: testSBuf.cc:392
void testComparisons()
Definition: testSBuf.cc:321
void testSubscriptOp()
Definition: testSBuf.cc:234
void testSBufConstructDestructAfterMemInit()
Definition: testSBuf.cc:128
CPPUNIT_TEST(testRawContent)
void testTailCopy()
CPPUNIT_TEST(testSBufLength)
CPPUNIT_TEST(testStartsWith)
CPPUNIT_TEST(testChomp)
void testGrow()
Definition: testSBuf.cc:798
void testFindChar()
Definition: testSBuf.cc:542
void testFindFirstOf()
Definition: testSBuf.cc:982

 

Introduction

Documentation

Support

Miscellaneous

Web Site Translations

Mirrors