testSBuf.h
Go to the documentation of this file.
1 /*
2  * Copyright (C) 1996-2021 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 
20 class testSBuf : public CPPUNIT_NS::TestFixture
21 {
57 // CPPUNIT_TEST( testDumpStats ); //fake test, to print alloc stats
59 protected:
60  void commonInit();
63  void testEqualityTest();
64  void testAppendSBuf();
65  void testAppendCString();
66  void testAppendStdString();
67  void testAppendf();
68  void testPrintf();
69  void testSubscriptOp();
70  void testSubscriptOpFail();
71  void testDumpStats();
72  void testComparisons();
73  void testConsume();
74  void testRawContent();
75  void testRawSpace();
76  void testChop();
77  void testChomp();
78  void testSubstr();
79  void testTailCopy();
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 
void testConsume()
Definition: testSBuf.cc:392
CPPUNIT_TEST(testAutoFind)
void testSBufLength()
Definition: testSBuf.cc:763
CPPUNIT_TEST_SUITE(testSBuf)
void testRawContent()
Definition: testSBuf.cc:405
CPPUNIT_TEST(testSubscriptOp)
void testAutoFind()
Definition: testSBuf.cc:1028
void testReserve()
Definition: testSBuf.cc:813
CPPUNIT_TEST(testFindFirstNotOf)
CPPUNIT_TEST(testCopy)
CPPUNIT_TEST(testEqualityTest)
CPPUNIT_TEST(testSBufStream)
void testSearchFail()
CPPUNIT_TEST(testAppendCString)
void testCopy()
Definition: testSBuf.cc:770
void testSBufConstructDestruct()
Definition: testSBuf.cc:48
void testDumpStats()
Definition: testSBuf.cc:225
void testStartsWith()
Definition: testSBuf.cc:947
void testFindFirstOf()
Definition: testSBuf.cc:982
CPPUNIT_TEST(testChop)
void testChomp()
Definition: testSBuf.cc:493
CPPUNIT_TEST(testStringOps)
void testChop()
Definition: testSBuf.cc:429
void testAppendf()
Definition: testSBuf.cc:216
void testRawSpace()
Definition: testSBuf.cc:418
CPPUNIT_TEST(testConsume)
void testSBufStream()
Definition: testSBuf.cc:964
void testSubscriptOpFail()
Definition: testSBuf.cc:246
CPPUNIT_TEST_EXCEPTION(testSubscriptOpFail, TextException)
void testStdStringOps()
Definition: testSBuf.cc:1035
void testStringOps()
Definition: testSBuf.cc:784
CPPUNIT_TEST(testRFindSBuf)
CPPUNIT_TEST(testAppendStdString)
CPPUNIT_TEST(testStdStringOps)
CPPUNIT_TEST(testFindFirstOf)
void testRFindChar()
Definition: testSBuf.cc:708
CPPUNIT_TEST(testStartsWith)
CPPUNIT_TEST(testRFindChar)
void commonInit()
void testSubstr()
Definition: testSBuf.cc:530
CPPUNIT_TEST(testFindChar)
void testSBufConstructDestructAfterMemInit()
Definition: testSBuf.cc:128
CPPUNIT_TEST(testChomp)
void testComparisons()
Definition: testSBuf.cc:321
void testFindSBuf()
Definition: testSBuf.cc:599
void testPrintf()
Definition: testSBuf.cc:174
void testGrow()
Definition: testSBuf.cc:798
void testSBufHash()
Definition: testSBuf.cc:1081
CPPUNIT_TEST(testPrintf)
void testFindChar()
Definition: testSBuf.cc:542
CPPUNIT_TEST(testIterators)
void testIterators()
Definition: testSBuf.cc:1044
CPPUNIT_TEST(testSBufConstructDestruct)
an std::runtime_error with thrower location info
Definition: TextException.h:20
CPPUNIT_TEST(testSubstr)
void testAppendStdString()
Definition: testSBuf.cc:191
CPPUNIT_TEST(testSBufHash)
void testAppendSBuf()
Definition: testSBuf.cc:153
void testRFindSBuf()
Definition: testSBuf.cc:718
CPPUNIT_TEST(testReserve)
CPPUNIT_TEST(testRawSpace)
CPPUNIT_TEST(testComparisons)
void testAppendCString()
Definition: testSBuf.cc:183
CPPUNIT_TEST(testSBufConstructDestructAfterMemInit)
CPPUNIT_TEST(testFindSBuf)
void testTailCopy()
void testFindFirstNotOf()
Definition: testSBuf.cc:1005
void testSubscriptOp()
Definition: testSBuf.cc:234
CPPUNIT_TEST(testRawContent)
CPPUNIT_TEST(testAppendf)
CPPUNIT_TEST(testGrow)
CPPUNIT_TEST(testSBufLength)
CPPUNIT_TEST_SUITE_END()
CPPUNIT_TEST(testAppendSBuf)
void testEqualityTest()
Definition: testSBuf.cc:135

 

Introduction

Documentation

Support

Miscellaneous

Web Site Translations

Mirrors