FOSSology  4.4.0
Open Source License Compliance by Open Source Software
regexConfProviderTestSuite Class Reference
Inheritance diagram for regexConfProviderTestSuite:
Inheritance graph
Collaboration diagram for regexConfProviderTestSuite:
Collaboration graph

Protected Member Functions

void simpleTest ()
 
void simpleReplacementTest ()
 
void multipleReplacementTest ()
 
void testForInfiniteRecursion ()
 

Private Member Functions

 CPPUNIT_TEST_SUITE (regexConfProviderTestSuite)
 
 CPPUNIT_TEST (simpleTest)
 
 CPPUNIT_TEST (simpleReplacementTest)
 
 CPPUNIT_TEST (multipleReplacementTest)
 
 CPPUNIT_TEST (testForInfiniteRecursion)
 
 CPPUNIT_TEST_SUITE_END ()
 
void regexConfProviderTest (istringstream &testStream, const string &testString, const string &testKey)
 Test RegexConfProvider. More...
 

Detailed Description

Definition at line 16 of file test_regexConfProvider.cc.

Member Function Documentation

◆ multipleReplacementTest()

void regexConfProviderTestSuite::multipleReplacementTest ( )
inlineprotected
Test:
  1. Create test stream with multiple pairs
  2. Check with regexConfProviderTest()

Definition at line 91 of file test_regexConfProvider.cc.

◆ regexConfProviderTest()

void regexConfProviderTestSuite::regexConfProviderTest ( istringstream &  testStream,
const string &  testString,
const string &  testKey 
)
inlineprivate

Test RegexConfProvider.

Test:
  1. Create new RegexConfProvider
  2. Load test data from testStream
  3. Get data using testKey and compare against testString
Parameters
testStreamStream to load data from
testStringString to check result against
testKeyKey to check result against

Definition at line 36 of file test_regexConfProvider.cc.

◆ simpleReplacementTest()

void regexConfProviderTestSuite::simpleReplacementTest ( )
inlineprotected
Test:
  1. Create test stream with key inside value
  2. Check with regexConfProviderTest()

Definition at line 74 of file test_regexConfProvider.cc.

◆ simpleTest()

void regexConfProviderTestSuite::simpleTest ( )
inlineprotected
Test:
  1. Create simple test stream with 'key=value'
  2. Check with regexConfProviderTest()

Definition at line 59 of file test_regexConfProvider.cc.

◆ testForInfiniteRecursion()

void regexConfProviderTestSuite::testForInfiniteRecursion ( )
inlineprotected
Test:
  1. Create ambiguous test stream
  2. Load in RegexConfProvider
  3. Try to retrieve value

Definition at line 111 of file test_regexConfProvider.cc.


The documentation for this class was generated from the following file: