Definition at line 68 of file test_scanners.cc.
void scannerTestSuite::cleanEntries |
( |
| ) |
|
|
inlineprotected |
Test cleanMatch() to remove non-UTF8 text and extra spaces.
- Test:
- Load test data and expected data
- Generate matches to clean each line in the file
- Call cleanMatch() to clean each line
- Check if cleaned test data matches expected data
Definition at line 205 of file test_scanners.cc.
void scannerTestSuite::copyscannerTest |
( |
| ) |
|
|
inlineprotected |
void scannerTestSuite::multiSpdxContentTest |
( |
| ) |
|
|
inlineprotected |
void scannerTestSuite::nonSpdxContentTest |
( |
| ) |
|
|
inlineprotected |
void scannerTestSuite::regAuthorTest |
( |
| ) |
|
|
inlineprotected |
void scannerTestSuite::regEccTest |
( |
| ) |
|
|
inlineprotected |
void scannerTestSuite::regEmailTest |
( |
| ) |
|
|
inlineprotected |
void scannerTestSuite::regKeywordTest |
( |
| ) |
|
|
inlineprotected |
void scannerTestSuite::regUrlTest |
( |
| ) |
|
|
inlineprotected |
void scannerTestSuite::scannerTest |
( |
const scanner & |
sc, |
|
|
const char * |
content, |
|
|
const string & |
type, |
|
|
list< const char * > |
expectedStrings |
|
) |
| |
|
inlineprivate |
Runs scanner on content and check matches against expectedStrings.
- Parameters
-
sc | Scanner to use |
content | Content to scan |
type | Match type |
expectedStrings | Expected strings from scanner result |
Definition at line 88 of file test_scanners.cc.
void scannerTestSuite::scannerTest |
( |
const string & |
content, |
|
|
vector< string > |
expectedStrings |
|
) |
| |
|
inlineprivate |
Runs a scan on content and check matches against expectedStrings.
- Parameters
-
content | Content to scan |
expectedStrings | Expected strings from scanner result |
Definition at line 111 of file test_scanners.cc.
void scannerTestSuite::spdxContentTest |
( |
| ) |
|
|
inlineprotected |
The documentation for this class was generated from the following file: