![]() |
FOSSology
4.7.1
Open Source License Compliance by Open Source Software
|
Unit tests for BomReportGenerator CycloneDX output. More...
Go to the source code of this file.
Classes | |
| class | Fossology\Lib\Data\LicenseRef |
Functions | |
| assert_test ($name, $condition, $detail='') | |
Variables | |
| if (!function_exists( 'uuid_create')) | |
| $generator = new BomReportGenerator() | |
| $passed = 0 | |
| $failed = 0 | |
| $licenseData | |
| $result = $generator->createLicense($licenseData) | |
| $licenseDataNoText | |
| $result2 = $generator->createLicense($licenseDataNoText) | |
| $licenseRef | |
| $result3 = $generator->createLicense($licenseRef) | |
| $componentData | |
| $comp = $generator->createComponent($componentData) | |
| $compNoCopyright | |
| $fileComponent | |
| $report | |
| $json = json_encode($report, JSON_PRETTY_PRINT | JSON_UNESCAPED_SLASHES) | |
| $decoded = json_decode($json, true) | |
| $compWithVersion | |
| $compNoVersion | |
| $compWithPurl | |
| $compNoPurl | |
| $compWithDesc | |
| $compNoDesc | |
| $compWithProps | |
| $compOnlyAck | |
| $compNoProps | |
| $compWithExtRef | |
| $compNoExtRef | |
| $reportWithExtRef | |
| $fullComp | |
| if($failed > 0) | else |
Unit tests for BomReportGenerator CycloneDX output.
Definition in file test_report_output.php.
| $compNoCopyright |
Definition at line 135 of file test_report_output.php.
| $compNoDesc |
Definition at line 237 of file test_report_output.php.
| $compNoExtRef |
Definition at line 302 of file test_report_output.php.
| $compNoProps |
Definition at line 275 of file test_report_output.php.
| $compNoPurl |
Definition at line 218 of file test_report_output.php.
| $compNoVersion |
Definition at line 199 of file test_report_output.php.
| $componentData |
Definition at line 108 of file test_report_output.php.
| $compOnlyAck |
Definition at line 265 of file test_report_output.php.
| $compWithDesc |
Definition at line 228 of file test_report_output.php.
| $compWithExtRef |
Definition at line 286 of file test_report_output.php.
| $compWithProps |
Definition at line 247 of file test_report_output.php.
| $compWithPurl |
Definition at line 209 of file test_report_output.php.
| $compWithVersion |
Definition at line 190 of file test_report_output.php.
| $fileComponent |
Definition at line 145 of file test_report_output.php.
| $fullComp |
Definition at line 329 of file test_report_output.php.
| $licenseData |
Definition at line 59 of file test_report_output.php.
| $licenseDataNoText |
Definition at line 81 of file test_report_output.php.
| $licenseRef |
Definition at line 95 of file test_report_output.php.
| $report |
Definition at line 154 of file test_report_output.php.
| $reportWithExtRef |
Definition at line 312 of file test_report_output.php.
| if ( $failed > 0) else |
Definition at line 369 of file test_report_output.php.