FOSSology  4.4.0
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

◆ IsAlreadyScheduled()

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 42 of file HelperPluginMock.php.

◆ plugin_find()

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 31 of file HelperPluginMock.php.

Variable Documentation

◆ $deciderPlugin

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

Mock object for decider plugin

Definition at line 19 of file HelperPluginMock.php.

◆ $GLOBALS

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

Create mock plugin array for decider plugin

Definition at line 25 of file HelperPluginMock.php.