testSBuf.h
Go to the documentation of this file.
1 /*
2  * Copyright (C) 1996-2017 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 <cppunit/extensions/HelperMacros.h>
13 
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();
85  void testSearchFail();
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 testIterators()
Definition: testSBuf.cc:953
void testStartsWith()
Definition: testSBuf.cc:856
CPPUNIT_TEST(testSBufConstructDestruct)
void commonInit()
void testEqualityTest()
Definition: testSBuf.cc:135
void testAppendf()
Definition: testSBuf.cc:216
void testRFindSBuf()
Definition: testSBuf.cc:718
void testRawContent()
Definition: testSBuf.cc:405
void testFindFirstNotOf()
Definition: testSBuf.cc:914
void testSubscriptOp()
Definition: testSBuf.cc:234
void testFindFirstOf()
Definition: testSBuf.cc:891
void testReserve()
Definition: testSBuf.cc:813
void testSubstr()
Definition: testSBuf.cc:530
void testAppendSBuf()
Definition: testSBuf.cc:153
void testAppendStdString()
Definition: testSBuf.cc:191
void testSBufStream()
Definition: testSBuf.cc:873
void testSBufLength()
Definition: testSBuf.cc:763
void testConsume()
Definition: testSBuf.cc:392
CPPUNIT_TEST_SUITE(testSBuf)
void testPrintf()
Definition: testSBuf.cc:174
void testSBufHash()
Definition: testSBuf.cc:990
void testFindChar()
Definition: testSBuf.cc:542
void testSBufConstructDestruct()
Definition: testSBuf.cc:48
CPPUNIT_TEST_SUITE_END()
void testChomp()
Definition: testSBuf.cc:493
CPPUNIT_TEST_EXCEPTION(testSubscriptOpFail, OutOfBoundsException)
void testSearchFail()
void testCopy()
Definition: testSBuf.cc:770
void testDumpStats()
Definition: testSBuf.cc:225
void testSubscriptOpFail()
Definition: testSBuf.cc:246
void testGrow()
Definition: testSBuf.cc:798
void testTailCopy()
void testRFindChar()
Definition: testSBuf.cc:708
void testAutoFind()
Definition: testSBuf.cc:937
void testChop()
Definition: testSBuf.cc:429
void testRawSpace()
Definition: testSBuf.cc:418
void testSBufConstructDestructAfterMemInit()
Definition: testSBuf.cc:128
void testComparisons()
Definition: testSBuf.cc:321
void testStringOps()
Definition: testSBuf.cc:784
void testStdStringOps()
Definition: testSBuf.cc:944
void testFindSBuf()
Definition: testSBuf.cc:599
void testAppendCString()
Definition: testSBuf.cc:183

 

Introduction

Documentation

Support

Miscellaneous

Web Site Translations

Mirrors