![]() |
FOSSology
4.7.1
Open Source License Compliance by Open Source Software
|
Test for class KotobaAgentPlugin::isAgentScheduledForUpload() More...


Public Member Functions | |
| testReturnsTrueWhenAgentHasAnUnfinishedJob () | |
| testReturnsFalseWhenAgentHasNoJob () | |
| testReturnsFalseWithoutDbQueryWhenPluginNotFound () | |
| testChecksEachAgentIndependently () | |
Protected Member Functions | |
| setUp () | |
| tearDown () | |
Private Member Functions | |
| registerStubPlugin ($pluginName, $agentName) | |
Private Attributes | |
| $assertCountBefore | |
| $plugin | |
| $dbManager | |
Test for class KotobaAgentPlugin::isAgentScheduledForUpload()
Regression coverage for the scancode scheduling-race fix: this method must stay a plain "is it already queued" DB check. A request-intent shortcut was tried and reverted because dependency resolution calls AgentAdd() on whatever it finds here, so treating a not-yet-queued ParmAgent as scheduled queues it with no args instead of waiting for it.
Definition at line 27 of file KotobaAgentPluginTest.php.
|
private |
Register a minimal stub plugin under $pluginName with the given AgentName.
Definition at line 56 of file KotobaAgentPluginTest.php.
| KotobaAgentPluginTest::testChecksEachAgentIndependently | ( | ) |
Definition at line 128 of file KotobaAgentPluginTest.php.
| KotobaAgentPluginTest::testReturnsFalseWhenAgentHasNoJob | ( | ) |
Definition at line 93 of file KotobaAgentPluginTest.php.
| KotobaAgentPluginTest::testReturnsFalseWithoutDbQueryWhenPluginNotFound | ( | ) |
Definition at line 112 of file KotobaAgentPluginTest.php.
| KotobaAgentPluginTest::testReturnsTrueWhenAgentHasAnUnfinishedJob | ( | ) |
Definition at line 70 of file KotobaAgentPluginTest.php.