FOSSology  3.2.0rc1
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 27 of file test_regexConfProvider.cc.

Member Function Documentation

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

Definition at line 102 of file test_regexConfProvider.cc.

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 47 of file test_regexConfProvider.cc.

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

Definition at line 85 of file test_regexConfProvider.cc.

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

Definition at line 70 of file test_regexConfProvider.cc.

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

Definition at line 122 of file test_regexConfProvider.cc.


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