![]() |
FOSSology
4.7.1
Open Source License Compliance by Open Source Software
|


Protected Member Functions | |
| void | copyscannerTest () |
| Test copyright scanner. More... | |
| void | copyscannerDotPrefixedNameTest () |
| Test copyright scanner with dot-prefixed names like .NET Foundation. More... | |
| void | copyscannerBracketedYearTest () |
| Preserve bracketed numeric years after a copyright symbol. More... | |
| void | copyscannerBracketedYearNoiseTest () |
| Brackets must not exempt placeholders or noise from cleanup. More... | |
| void | copyscannerBracketedYearBoundariesTest () |
| Preserve offsets and separation from the following statement. More... | |
| void | copyscannerBareKeywordDiscardTest () |
| Test that bare copyright keywords produce no matches. More... | |
| void | copyscannerCopyrightedStatementTest () |
| Regression: "copyrighted" statements and names like "Tom" must not be falsely deactivated by REG_EXCEPTION_COPY. More... | |
| void | copyscannerCamelCaseHolderTest () |
| Regression: REG_EXCEPTION_COPY carries a To[A-Z][a-zA-Z]{4,} branch to skip camelCase identifiers such as Copyright.ToString(). The expression is compiled with icase, which makes [A-Z] match lowercase too, degrading the branch into "any word starting with to". Holder names such as TOSHIBA then matched and were deactivated. The branch is guarded with (?-i:...) so only real camelCase matches. More... | |
| void | copyscannerBinaryNoiseTest () |
| Regression: binary-file content with a short ASCII prefix before non-ASCII bytes must not be reported as active copyright statements. More... | |
| void | copyscannerSpdxArrayTest () |
| Regression: SPDX-FileCopyrightText = [...] TOML array format must yield one active match per quoted element, not a single merged string. More... | |
| void | copyscannerSpdxFullLineTest () |
| Regression: SPDX-FileCopyrightText entries must be detected as individual single-line statements and their match range must cover the full line in the original content. More... | |
| void | copyscannerProseExceptionTest () |
| Regression: license-prose strings that contain "copyright" as a common noun must be deactivated, not stored as active findings. More... | |
| void | regAuthorTest () |
| Test copyright scanner for author. More... | |
| void | regIpraTest () |
| Test Ipra scanner. More... | |
| void | regEccTest () |
| Test ECC scanner. More... | |
| void | regUrlTest () |
| Test copyright scanner for URL. More... | |
| void | regEmailTest () |
| Test copyright scanner for email. More... | |
| void | regKeywordTest () |
| Test copyright scanner for keywords. More... | |
| void | cleanEntries () |
| Test cleanMatch() to remove non-UTF8 text and extra spaces. More... | |
| void | spdxContentTest () |
| Test ojo on content with SPDX license. More... | |
| void | nonSpdxContentTest () |
| Test ojo on content without SPDX license. More... | |
| void | multiSpdxContentTest () |
| Test ojo on content with multiple SPDX license. More... | |
Private Member Functions | |
| CPPUNIT_TEST_SUITE (scannerTestSuite) | |
| CPPUNIT_TEST (copyscannerTest) | |
| CPPUNIT_TEST (copyscannerDotPrefixedNameTest) | |
| CPPUNIT_TEST (copyscannerBracketedYearTest) | |
| CPPUNIT_TEST (copyscannerBracketedYearNoiseTest) | |
| CPPUNIT_TEST (copyscannerBracketedYearBoundariesTest) | |
| CPPUNIT_TEST (copyscannerBareKeywordDiscardTest) | |
| CPPUNIT_TEST (copyscannerCopyrightedStatementTest) | |
| CPPUNIT_TEST (copyscannerCamelCaseHolderTest) | |
| CPPUNIT_TEST (copyscannerBinaryNoiseTest) | |
| CPPUNIT_TEST (copyscannerSpdxFullLineTest) | |
| CPPUNIT_TEST (copyscannerSpdxArrayTest) | |
| CPPUNIT_TEST (copyscannerProseExceptionTest) | |
| CPPUNIT_TEST (regAuthorTest) | |
| CPPUNIT_TEST (regIpraTest) | |
| CPPUNIT_TEST (regEccTest) | |
| CPPUNIT_TEST (regUrlTest) | |
| CPPUNIT_TEST (regEmailTest) | |
| CPPUNIT_TEST (regKeywordTest) | |
| CPPUNIT_TEST (cleanEntries) | |
| CPPUNIT_TEST_SUITE_END () | |
| void | scannerTest (const scanner &sc, const char *content, const string &type, list< const char * > expectedStrings) |
| Runs scanner on content and check matches against expectedStrings. More... | |
| CPPUNIT_TEST_SUITE (scannerTestSuite) | |
| CPPUNIT_TEST (spdxContentTest) | |
| CPPUNIT_TEST (nonSpdxContentTest) | |
| CPPUNIT_TEST (multiSpdxContentTest) | |
| CPPUNIT_TEST_SUITE_END () | |
| void | scannerTest (const string &content, vector< string > expectedStrings) |
| Runs a scan on content and check matches against expectedStrings. More... | |
Definition at line 58 of file test_scanners.cc.
|
inlineprotected |
Test cleanMatch() to remove non-UTF8 text and extra spaces.
Definition at line 661 of file test_scanners.cc.
|
inlineprotected |
Test that bare copyright keywords produce no matches.
Definition at line 253 of file test_scanners.cc.
|
inlineprotected |
Regression: binary-file content with a short ASCII prefix before non-ASCII bytes must not be reported as active copyright statements.
Definition at line 381 of file test_scanners.cc.
|
inlineprotected |
Preserve offsets and separation from the following statement.
Definition at line 231 of file test_scanners.cc.
|
inlineprotected |
Brackets must not exempt placeholders or noise from cleanup.
Definition at line 196 of file test_scanners.cc.
|
inlineprotected |
Preserve bracketed numeric years after a copyright symbol.
Definition at line 158 of file test_scanners.cc.
|
inlineprotected |
Regression: REG_EXCEPTION_COPY carries a To[A-Z][a-zA-Z]{4,} branch to skip camelCase identifiers such as Copyright.ToString(). The expression is compiled with icase, which makes [A-Z] match lowercase too, degrading the branch into "any word starting with to". Holder names such as TOSHIBA then matched and were deactivated. The branch is guarded with (?-i:...) so only real camelCase matches.
Definition at line 333 of file test_scanners.cc.
|
inlineprotected |
Regression: "copyrighted" statements and names like "Tom" must not be falsely deactivated by REG_EXCEPTION_COPY.
Definition at line 296 of file test_scanners.cc.
|
inlineprotected |
Test copyright scanner with dot-prefixed names like .NET Foundation.
Definition at line 135 of file test_scanners.cc.
|
inlineprotected |
Regression: license-prose strings that contain "copyright" as a common noun must be deactivated, not stored as active findings.
Definition at line 528 of file test_scanners.cc.
|
inlineprotected |
Regression: SPDX-FileCopyrightText = [...] TOML array format must yield one active match per quoted element, not a single merged string.
Definition at line 418 of file test_scanners.cc.
|
inlineprotected |
Regression: SPDX-FileCopyrightText entries must be detected as individual single-line statements and their match range must cover the full line in the original content.
Definition at line 474 of file test_scanners.cc.
|
inlineprotected |
Test copyright scanner.
Definition at line 117 of file test_scanners.cc.
|
inlineprotected |
Test ojo on content with multiple SPDX license.
Definition at line 160 of file test_scanners.cc.
|
inlineprotected |
Test ojo on content without SPDX license.
Definition at line 148 of file test_scanners.cc.
|
inlineprotected |
Test copyright scanner for author.
Definition at line 580 of file test_scanners.cc.
|
inlineprotected |
Test ECC scanner.
Definition at line 612 of file test_scanners.cc.
|
inlineprotected |
Test copyright scanner for email.
Definition at line 636 of file test_scanners.cc.
|
inlineprotected |
Test Ipra scanner.
Definition at line 600 of file test_scanners.cc.
|
inlineprotected |
Test copyright scanner for keywords.
Definition at line 648 of file test_scanners.cc.
|
inlineprotected |
Test copyright scanner for URL.
Definition at line 624 of file test_scanners.cc.
|
inlineprivate |
Runs scanner on content and check matches against expectedStrings.
| sc | Scanner to use |
| content | Content to scan |
| type | Match type |
| expectedStrings | Expected strings from scanner result |
Definition at line 90 of file test_scanners.cc.
|
inlineprivate |
Runs a scan on content and check matches against expectedStrings.
| content | Content to scan |
| expectedStrings | Expected strings from scanner result |
Definition at line 104 of file test_scanners.cc.
|
inlineprotected |
Test ojo on content with SPDX license.
Definition at line 136 of file test_scanners.cc.