FOSSology  4.4.0
Open Source License Compliance by Open Source Software
OneShotMultiFileTest Class Reference

Perform a one-shot license analysis on multiple files. More...

Inheritance diagram for OneShotMultiFileTest:
Inheritance graph
Collaboration diagram for OneShotMultiFileTest:
Collaboration graph

Public Member Functions

 testOneShotmultiFile ()
 Run NOMOS on multiple files at once. More...
 
- Public Member Functions inherited from CommonCliTest
 testHelp ()
 Test for nomos help message. More...
 

Public Attributes

 $files
 
 $Results
 

Additional Inherited Members

- Protected Member Functions inherited from CommonCliTest
 setUp ()
 Setup the test cases and initialize the objects. More...
 
 tearDown ()
 Destruct the objects initialized during setUp() More...
 
 runNomos ($args="", $files=array())
 Run nomos using the arguments passed. More...
 
- Protected Attributes inherited from CommonCliTest
 $testDb
 
 $testInstaller
 
 $agentDir
 

Detailed Description

Perform a one-shot license analysis on multiple files.

Definition at line 21 of file OneShot-multiFile.php.

Member Function Documentation

◆ testOneShotmultiFile()

OneShotMultiFileTest::testOneShotmultiFile ( )

Run NOMOS on multiple files at once.

Test:
  1. Get the location of test files
  2. Run NOMOS on the test files and record the output
  3. For every result output, check if the file is in $Results array
  4. For every result output, match it using the $Results map

Definition at line 88 of file OneShot-multiFile.php.

Member Data Documentation

◆ $files

string OneShotMultiFileTest::$files

Location of test files

Definition at line 27 of file OneShot-multiFile.php.

◆ $Results

array OneShotMultiFileTest::$Results

Mapping of files => expected result

Definition at line 32 of file OneShot-multiFile.php.


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