FOSSology  3.2.0rc1
Open Source License Compliance by Open Source Software
Fossology\Decider Namespace Reference

Namespace for decider agent. More...

Namespaces

 Test
 

Classes

class  BulkReuser
 Prepares bulk licenses for an upload and run DeciderJob on it. More...
 
class  DeciderAgent
 Agent to decide license findings in an upload. More...
 
class  DeciderAgentTest
 

Functions

 plugin_find ($x)
 Mock function to get decider plugin required by BulkReuser. More...
 
 IsAlreadyScheduled ($jobId, $agentName, $uploadId)
 Mock function to depict scheduler working. More...
 

Variables

 $agent = new DeciderAgent(LicenseMap::CONCLUSION)
 
 $deciderPlugin = M::mock()
 
 $GLOBALS ['xyyzzzDeciderJob'] = $deciderPlugin
 
global $container
 

Detailed Description

Namespace for decider agent.

Function Documentation

Fossology\Decider\IsAlreadyScheduled (   $jobId,
  $agentName,
  $uploadId 
)

Mock function to depict scheduler working.

Parameters
int$jobId
string$agentName
int$uploadId
Returns
int Mock job id

Definition at line 53 of file HelperPluginMock.php.

Fossology\Decider\plugin_find (   $x)

Mock function to get decider plugin required by BulkReuser.

Parameters
string$x
Returns
Mockery::MockInterface Mock plugin object

Definition at line 42 of file HelperPluginMock.php.

Variable Documentation

Mockery::MockInterface Fossology::Decider::$deciderPlugin = M::mock()

Mock object for decider plugin

Definition at line 30 of file HelperPluginMock.php.

array Fossology::Decider::$GLOBALS = $deciderPlugin

Create mock plugin array for decider plugin

Definition at line 36 of file HelperPluginMock.php.