![]() |
FOSSology
4.7.1
Open Source License Compliance by Open Source Software
|
Test for AgentAdder::agentsAdd(), covering the scheduling-order fix @runTestsInSeparateProcesses @preserveGlobalState disabled. More...


Public Member Functions | |
| testPlainAgentsAndReorderedParmAgentsRunBeforeDecider () | |
| testScancodeScheduleAgentRunsBeforeItsOwnLeftoverAgentAddPass () | |
| testRejectsNonArrayAgentsToStart () | |
Protected Member Functions | |
| setUp () | |
| tearDown () | |
Private Member Functions | |
| registerLoggingPlugin ($menu, $pluginName) | |
| mockContainer ($uploadFilename='test.tar') | |
Private Attributes | |
| $assertCountBefore | |
| $agentAdder | |
| $callLog | |
Test for AgentAdder::agentsAdd(), covering the scheduling-order fix @runTestsInSeparateProcesses @preserveGlobalState disabled.
Isolated: loading the real AgentAdder class here would collide with ScanOptionsTest's Mockery::mock('overload:\AgentAdder') elsewhere in the suite.
Regression coverage for: plain agents (nomos/monk/ojo) must be queued before the ParmAgents loop (decider/kotoba, scancode), because decider (and kotoba, scheduled from it) resolves its scanner dependencies by checking whether they are already queued. Getting this order wrong either drops the dependency silently, or (for args-carrying ParmAgents like scancode) re-schedules the agent with no args before its real scheduleAgent() call runs.
Definition at line 36 of file AgentAdderTest.php.
|
private |
Register a fake plugin under $pluginName that logs every AgentAdd()/ scheduleAgent() call (with the plugin name) into the shared call log.
Definition at line 85 of file AgentAdderTest.php.
| AgentAdderTest::testPlainAgentsAndReorderedParmAgentsRunBeforeDecider | ( | ) |
Definition at line 140 of file AgentAdderTest.php.
| AgentAdderTest::testRejectsNonArrayAgentsToStart | ( | ) |
Definition at line 205 of file AgentAdderTest.php.
| AgentAdderTest::testScancodeScheduleAgentRunsBeforeItsOwnLeftoverAgentAddPass | ( | ) |
Definition at line 177 of file AgentAdderTest.php.