Definition at line 58 of file test_scanners.cc.
◆ cleanEntries()
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 208 of file test_scanners.cc.
◆ copyscannerTest()
void scannerTestSuite::copyscannerTest |
( |
| ) |
|
|
inlineprotected |
◆ multiSpdxContentTest()
void scannerTestSuite::multiSpdxContentTest |
( |
| ) |
|
|
inlineprotected |
◆ nonSpdxContentTest()
void scannerTestSuite::nonSpdxContentTest |
( |
| ) |
|
|
inlineprotected |
◆ regAuthorTest()
void scannerTestSuite::regAuthorTest |
( |
| ) |
|
|
inlineprotected |
◆ regEccTest()
void scannerTestSuite::regEccTest |
( |
| ) |
|
|
inlineprotected |
◆ regEmailTest()
void scannerTestSuite::regEmailTest |
( |
| ) |
|
|
inlineprotected |
◆ regIpraTest()
void scannerTestSuite::regIpraTest |
( |
| ) |
|
|
inlineprotected |
◆ regKeywordTest()
void scannerTestSuite::regKeywordTest |
( |
| ) |
|
|
inlineprotected |
◆ regUrlTest()
void scannerTestSuite::regUrlTest |
( |
| ) |
|
|
inlineprotected |
◆ scannerTest() [1/2]
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 79 of file test_scanners.cc.
◆ scannerTest() [2/2]
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 104 of file test_scanners.cc.
◆ spdxContentTest()
void scannerTestSuite::spdxContentTest |
( |
| ) |
|
|
inlineprotected |
The documentation for this class was generated from the following file: