25 function ReportCachePurgeAll()
32 public $assertCountBefore;
36 const PERCENTAGE = 315;
38 private $uploadTreeId;
44 private $agentLicenseEventProcessor;
50 private $itemTreeBounds;
52 private $clearingDecisionProcessor;
54 private $clearingEventProcessor;
58 private $includeSubFolders;
60 protected function setUp() :
void
62 $this->uploadTreeId = 432;
66 $this->timestamp = time();
67 $this->includeSubFolders =
false;
69 $this->clearingDao = M::mock(ClearingDao::class);
70 $this->agentLicenseEventProcessor = M::mock(AgentLicenseEventProcessor::class);
73 $this->itemTreeBounds = M::mock(ItemTreeBounds::class);
74 $this->itemTreeBounds->shouldReceive(
"getItemId")->withNoArgs()->andReturn($this->uploadTreeId);
75 $this->itemTreeBounds->shouldReceive(
"getPfileId")->withNoArgs()->andReturn($this->pfileId);
77 $this->
dbManager = M::mock(DbManager::class);
78 $this->
dbManager->shouldReceive(
'begin')->withNoArgs();
79 $this->
dbManager->shouldReceive(
'commit')->withNoArgs();
82 $this->clearingDao, $this->agentLicenseEventProcessor, $this->clearingEventProcessor,
84 $this->assertCountBefore = \Hamcrest\MatcherAssert::getCount();
87 protected function tearDown() :
void
89 $this->addToAssertionCount(\Hamcrest\MatcherAssert::getCount()-$this->assertCountBefore);
93 public function testMakeDecisionFromLastEvents()
95 $isGlobal = DecisionScopes::ITEM;
98 $this->clearingDao->shouldReceive(
"getRelevantClearingEvents")
99 ->with($this->itemTreeBounds, $this->groupId, $this->includeSubFolders)
100 ->andReturn(array($addedEvent));
101 $this->agentLicenseEventProcessor->shouldReceive(
"getScannerEvents")
102 ->with($this->itemTreeBounds)
103 ->andReturn(array());
105 $clearingDecision = M::mock(ClearingDecision::class);
106 $clearingDecision->shouldReceive(
"getTimeStamp")->withNoArgs()->andReturn($this->timestamp-3600);
107 $clearingDecision->shouldReceive(
"getType")->withNoArgs()->andReturn(DecisionTypes::IDENTIFIED);
108 $clearingDecision->shouldReceive(
"getClearingEvents")->withNoArgs()->andReturn(array());
110 $this->clearingDao->shouldReceive(
"getRelevantClearingDecision")
111 ->with($this->itemTreeBounds, $this->groupId)
112 ->andReturn($clearingDecision);
114 $this->clearingDao->shouldReceive(
"createDecisionFromEvents")->once()
115 ->with($this->uploadTreeId, $this->userId, $this->groupId, DecisionTypes::IDENTIFIED, $isGlobal, is(arrayContainingInAnyOrder(123)));
117 $this->clearingDecisionProcessor->makeDecisionFromLastEvents($this->itemTreeBounds, $this->userId, $this->groupId, DecisionTypes::IDENTIFIED, $isGlobal);
120 public function testMakeDecisionFromLastEventsWithNoLicenseKnownTypeShouldNotCreateANewDecisionWhenNoLicensesShouldBeRemoved()
122 $isGlobal = DecisionScopes::REPO;
125 $this->clearingDao->shouldReceive(
"getRelevantClearingEvents")
126 ->with($this->itemTreeBounds, $this->groupId, $this->includeSubFolders)
127 ->andReturn(array($addedEvent));
128 $this->agentLicenseEventProcessor->shouldReceive(
"getScannerEvents")
129 ->with($this->itemTreeBounds)->andReturn(array());
131 $clearingDecision = M::mock(ClearingDecision::class);
132 $clearingDecision->shouldReceive(
"getTimeStamp")->withNoArgs()->andReturn($this->timestamp-3600);
133 $clearingDecision->shouldReceive(
"getType")->withNoArgs()->andReturn(DecisionTypes::IDENTIFIED);
134 $clearingDecision->shouldReceive(
"getScope")->withNoArgs()->andReturn(DecisionScopes::ITEM);
135 $clearingDecision->shouldReceive(
"getClearingEvents")->withNoArgs()->andReturn(array());
137 $this->clearingDao->shouldReceive(
"getRelevantClearingDecision")
138 ->with($this->itemTreeBounds, $this->groupId)
139 ->andReturn($clearingDecision);
141 $this->clearingDao->shouldReceive(
"insertClearingEvent")->with($this->itemTreeBounds->getItemId(), $this->userId, $this->groupId, $addedEvent->getLicenseId(),
true)->andReturn($eventId);
143 $this->clearingDao->shouldReceive(
"createDecisionFromEvents")->once()->with($this->uploadTreeId, $this->userId, $this->groupId, DecisionTypes::IDENTIFIED, $isGlobal, array($eventId));
144 $this->clearingDao->shouldReceive(
"removeWipClearingDecision")->never();
149 public function testMakeDecisionFromLastEventsWithNoLicenseKnownTypeShouldNotCreateANewDecisionWhenNoLicensesShouldBeRemovedAndTheScopeDoesNotChange()
151 $isGlobal = DecisionScopes::REPO;
154 $this->clearingDao->shouldReceive(
"getRelevantClearingEvents")
155 ->with($this->itemTreeBounds, $this->groupId, $this->includeSubFolders)
156 ->andReturn(array($addedEvent));
157 $this->agentLicenseEventProcessor->shouldReceive(
"getScannerEvents")
158 ->with($this->itemTreeBounds)->andReturn(array());
160 $clearingDecision = M::mock(ClearingDecision::class);
161 $clearingDecision->shouldReceive(
"getTimeStamp")->withNoArgs()->andReturn($this->timestamp-3600);
162 $clearingDecision->shouldReceive(
"getType")->withNoArgs()->andReturn(DecisionTypes::IDENTIFIED);
163 $clearingDecision->shouldReceive(
"getScope")->withNoArgs()->andReturn($isGlobal);
164 $clearingDecision->shouldReceive(
"getClearingEvents")->withNoArgs()->andReturn(array());
166 $this->clearingDao->shouldReceive(
"getRelevantClearingDecision")
167 ->with($this->itemTreeBounds, $this->groupId)
168 ->andReturn($clearingDecision);
171 $this->clearingDao->shouldReceive(
"insertClearingEvent")->with($this->itemTreeBounds->getItemId(), $this->userId, $this->groupId, $addedEvent->getLicenseId(),
true)->andReturn($eventId);
172 $this->clearingDao->shouldReceive(
"createDecisionFromEvents")->once()->with($this->uploadTreeId, $this->userId, $this->groupId, DecisionTypes::IDENTIFIED, $isGlobal, array($eventId));
173 $this->clearingDao->shouldReceive(
"removeWipClearingDecision")->never();
178 public function testMakeDecisionFromLastEventsWithNoLicenseKnownType()
182 $this->agentLicenseEventProcessor->shouldReceive(
"getScannerEvents")
183 ->with($this->itemTreeBounds)->andReturn(array());
185 $this->clearingDao->shouldReceive(
"getRelevantClearingEvents")
186 ->with($this->itemTreeBounds, $this->groupId, $this->includeSubFolders)
187 ->andReturn(array());
189 $clearingDecision = M::mock(ClearingDecision::class);
190 $clearingDecision->shouldReceive(
"getTimeStamp")->withNoArgs()->andReturn($this->timestamp-3600);
191 $clearingDecision->shouldReceive(
"getType")->withNoArgs()->andReturn(DecisionTypes::IRRELEVANT);
192 $clearingDecision->shouldReceive(
"getClearingEvents")->withNoArgs()->andReturn(array());
194 $this->clearingDao->shouldReceive(
"getRelevantClearingDecision")
195 ->with($this->itemTreeBounds, $this->groupId)
196 ->andReturn($clearingDecision);
198 $this->clearingDao->shouldReceive(
"createDecisionFromEvents")->once()->with( $this->uploadTreeId, $this->userId, $this->groupId, DecisionTypes::IDENTIFIED, DecisionScopes::REPO, array());
199 $this->clearingDao->shouldReceive(
"removeWipClearingDecision")->never();
204 public function testMakeDecisionFromLastEventsWithNoLicenseKnownTypeAndAnExistingAddingUserEvent()
208 $addedEvent = $this->
createClearingEvent(123, $this->timestamp, $licenseRef->getId(), $licenseRef->getShortName(), $licenseRef->getFullName(), ClearingEventTypes::USER, $isRemoved =
false);
212 $this->agentLicenseEventProcessor->shouldReceive(
"getScannerEvents")
213 ->with($this->itemTreeBounds)->andReturn(array());
215 $this->clearingDao->shouldReceive(
"getRelevantClearingEvents")
216 ->with($this->itemTreeBounds, $this->groupId, $this->includeSubFolders)
217 ->andReturn(array($licenseRef->getId() => $addedEvent));
219 $clearingDecision = M::mock(ClearingDecision::class);
220 $clearingDecision->shouldReceive(
"getTimeStamp")->withNoArgs()->andReturn($this->timestamp-3600);
221 $clearingDecision->shouldReceive(
"getType")->withNoArgs()->andReturn(DecisionTypes::IRRELEVANT);
222 $clearingDecision->shouldReceive(
"getClearingEvents")->withNoArgs()->andReturn(array());
224 $this->clearingDao->shouldReceive(
"getRelevantClearingDecision")
225 ->with($this->itemTreeBounds, $this->groupId)
226 ->andReturn($clearingDecision);
229 $this->clearingDao->shouldReceive(
"insertClearingEvent")->with($this->itemTreeBounds->getItemId(), $this->userId, $this->groupId, $addedEvent->getLicenseId(),
true)->andReturn($eventId);
230 $this->clearingDao->shouldReceive(
"createDecisionFromEvents")->once()->with( $this->uploadTreeId, $this->userId, $this->groupId, DecisionTypes::IDENTIFIED, DecisionScopes::REPO, array($eventId));
231 $this->clearingDao->shouldReceive(
"removeWipClearingDecision")->never();
236 public function testMakeDecisionFromLastEventsWithNoLicenseKnownTypeAndAnExistingRemovingUserEvent()
240 $removedEvent = $this->
createClearingEvent(123, $this->timestamp, $licenseRef->getId(), $licenseRef->getShortName(), $licenseRef->getFullName(), ClearingEventTypes::USER, $isRemoved =
true);
244 $this->agentLicenseEventProcessor->shouldReceive(
"getScannerEvents")
245 ->with($this->itemTreeBounds)->andReturn(array());
247 $this->clearingDao->shouldReceive(
"getRelevantClearingEvents")
248 ->with($this->itemTreeBounds, $this->groupId, $this->includeSubFolders)
249 ->andReturn(array($licenseRef->getId() => $removedEvent));
251 $clearingDecision = M::mock(ClearingDecision::class);
252 $clearingDecision->shouldReceive(
"getTimeStamp")->withNoArgs()->andReturn($this->timestamp-3600);
253 $clearingDecision->shouldReceive(
"getType")->withNoArgs()->andReturn(DecisionTypes::IRRELEVANT);
254 $clearingDecision->shouldReceive(
"getClearingEvents")->withNoArgs()->andReturn(array());
256 $this->clearingDao->shouldReceive(
"getRelevantClearingDecision")
257 ->with($this->itemTreeBounds, $this->groupId)
258 ->andReturn($clearingDecision);
260 $this->clearingDao->shouldReceive(
"createDecisionFromEvents")->once()->with( $this->uploadTreeId, $this->userId, $this->groupId, DecisionTypes::IDENTIFIED, DecisionScopes::REPO, array());
261 $this->clearingDao->shouldReceive(
"removeWipClearingDecision")->never();
268 public function testMakeDecisionFromLastEventsWithDelayedScanner()
274 $removedEvent = $this->
createClearingEvent(123, $this->timestamp, $licenseRef->getId(), $licenseRef->getShortName(), $licenseRef->getFullName(), ClearingEventTypes::USER, $isRemoved =
true);
276 $this->clearingDao->shouldReceive(
"getRelevantClearingEvents")
277 ->with($this->itemTreeBounds, $this->groupId, $this->includeSubFolders)
278 ->andReturn(array($licenseRef->getId() => $removedEvent));
280 $this->agentLicenseEventProcessor->shouldReceive(
"getScannerEvents")
281 ->with($this->itemTreeBounds)->andReturn($scannerResults);
283 $clearingDecision = M::mock(ClearingDecision::class);
284 $clearingDecision->shouldReceive(
"getTimeStamp")->withNoArgs()->andReturn($this->timestamp-3600);
285 $clearingDecision->shouldReceive(
"getType")->withNoArgs()->andReturn(DecisionTypes::IDENTIFIED);
286 $clearingDecision->shouldReceive(
"getClearingEvents")->withNoArgs()->andReturn(array());
288 $this->clearingDao->shouldReceive(
"getRelevantClearingDecision")
289 ->with($this->itemTreeBounds,$this->groupId)
290 ->andReturn($clearingDecision);
292 $this->clearingDao->shouldReceive(
"insertClearingEvent")
295 $this->clearingDao->shouldReceive(
"createDecisionFromEvents")
297 ->with($this->uploadTreeId, $this->userId, $this->groupId, DecisionTypes::IDENTIFIED, DecisionScopes::ITEM,
298 is(arrayContainingInAnyOrder($removedEvent->getEventId())));
299 $this->clearingDao->shouldReceive(
"removeWipClearingDecision")->never();
301 $this->clearingDecisionProcessor->makeDecisionFromLastEvents($this->itemTreeBounds, $this->userId, $this->groupId, DecisionTypes::IDENTIFIED, $isGlobal);
304 public function testMakeDecisionFromLastEventsWithInvalidType()
306 $this->clearingDao->shouldReceive(
"getRelevantClearingEvents")->never();
307 $this->agentLicenseEventProcessor->shouldReceive(
"getScannerDetectedLicenses")->never();
308 $this->clearingDao->shouldReceive(
"getRelevantClearingDecision")->never();
310 $this->clearingDao->shouldReceive(
"createDecisionFromEvents")->never();
311 $this->clearingDao->shouldReceive(
"removeWipClearingDecision")->never();
316 public function testGetCurrentClearingsWithoutDecisions()
318 $this->agentLicenseEventProcessor->shouldReceive(
"getScannerEvents")
319 ->with($this->itemTreeBounds,LicenseMap::TRIVIAL)
320 ->andReturn(array());
321 $this->clearingDao->shouldReceive(
"getRelevantClearingEvents")->with($this->itemTreeBounds, $this->groupId)->andReturn(array());
323 list($licenseDecisions, $removedClearings) = $this->clearingDecisionProcessor->getCurrentClearings($this->itemTreeBounds, $this->groupId);
325 assertThat($licenseDecisions, is(emptyArray()));
326 assertThat($removedClearings, is(emptyArray()));
329 public function testGetCurrentClearingsWithUserDecisionsOnly()
331 $addedEvent = $this->
createClearingEvent(123, $this->timestamp, $licenseId=13,
"licA",
"License A");
333 $this->agentLicenseEventProcessor->shouldReceive(
"getScannerEvents")
334 ->with($this->itemTreeBounds,LicenseMap::TRIVIAL)
335 ->andReturn(array());
336 $this->clearingDao->shouldReceive(
"getRelevantClearingEvents")
337 ->with($this->itemTreeBounds, $this->groupId)
338 ->andReturn(array($licenseId => $addedEvent));
340 list($licenseDecisions, $removedClearings) = $this->clearingDecisionProcessor->getCurrentClearings($this->itemTreeBounds, $this->groupId);
342 assertThat($licenseDecisions, is(arrayWithSize(1)));
345 $result = $licenseDecisions[$addedEvent->getLicenseId()];
346 assertThat($result->getLicenseRef(), is($addedEvent->getLicenseRef()));
347 assertThat($result->getClearingEvent(), is($addedEvent));
348 assertThat($result->getAgentDecisionEvents(), is(emptyArray()));
349 assertThat($removedClearings, is(emptyArray()));
352 public function testGetCurrentClearingsWithAgentDecisionsOnly()
356 $this->agentLicenseEventProcessor->shouldReceive(
"getScannerEvents")
357 ->with($this->itemTreeBounds,LicenseMap::TRIVIAL)
358 ->andReturn($scannerResults);
359 $this->clearingDao->shouldReceive(
"getRelevantClearingEvents")
360 ->with($this->itemTreeBounds, $this->groupId)
361 ->andReturn(array());
363 list($licenseDecisions, $removedClearings) = $this->clearingDecisionProcessor->getCurrentClearings($this->itemTreeBounds, $this->groupId);
365 assertThat($licenseDecisions, is(arrayWithSize(1)));
368 $result = $licenseDecisions[$licenseRef->getId()];
369 assertThat($result->getLicenseRef(), is($licenseRef));
370 assertThat($result->getClearingEvent(), is(nullValue()));
371 assertThat($result->getAgentDecisionEvents(), is(arrayWithSize(1)));
372 assertThat($removedClearings, is(emptyArray()));
375 public function testGetCurrentClearingsWithUserAndAgentDecision()
380 $this->agentLicenseEventProcessor->shouldReceive(
"getScannerEvents")
381 ->with($this->itemTreeBounds,LicenseMap::TRIVIAL)
382 ->andReturn($scannerResults);
384 $licenseId = $licenseRef->getId();
386 $addedEvent = $this->
createClearingEvent(123, $this->timestamp, $licenseId, $licenseRef->getShortName(), $licenseRef->getFullName());
387 $this->clearingDao->shouldReceive(
"getRelevantClearingEvents")
388 ->with($this->itemTreeBounds, $this->groupId)
389 ->andReturn(array($licenseId => $addedEvent));
391 list($licenseDecisions, $removedClearings) = $this->clearingDecisionProcessor->getCurrentClearings($this->itemTreeBounds, $this->groupId);
393 assertThat($licenseDecisions, is(arrayWithSize(1)));
396 $result = $licenseDecisions[$licenseRef->getId()];
397 assertThat($result->getLicenseRef(), is($licenseRef));
398 assertThat($result->getClearingEvent(), is($addedEvent));
399 assertThat($result->getAgentDecisionEvents(), is(arrayWithSize(1)));
400 assertThat($removedClearings, is(emptyArray()));
403 public function testGetCurrentClearingsWithUserRemovedDecisionsOnly()
407 $removedEvent = $this->
createClearingEvent(123, $this->timestamp, $licenseRef->getId(), $licenseRef->getShortName(), $licenseRef->getFullName(), ClearingEventTypes::USER,
true);
409 $this->agentLicenseEventProcessor->shouldReceive(
"getScannerEvents")
410 ->with($this->itemTreeBounds,LicenseMap::TRIVIAL)->andReturn($scannerResults);
412 $this->clearingDao->shouldReceive(
"getRelevantClearingEvents")
413 ->with($this->itemTreeBounds, $this->groupId)
414 ->andReturn(array($licenseRef->getId() => $removedEvent));
416 list($licenseDecisions, $removedClearings) = $this->clearingDecisionProcessor->getCurrentClearings($this->itemTreeBounds, $this->groupId);
418 assertThat($licenseDecisions, is(emptyArray()));
419 assertThat($removedClearings, is(arrayWithSize(1)));
422 $result = $removedClearings[$removedEvent->getLicenseId()];
423 assertThat($result->getLicenseRef(), is($removedEvent->getLicenseRef()));
424 assertThat($result->getClearingEvent(), is($removedEvent));
425 $agentClearingEvents = $result->getAgentDecisionEvents();
426 assertThat($agentClearingEvents, is(arrayWithSize(1)));
428 $agentEvent = $agentClearingEvents[0];
430 assertThat($agentEvent->getAgentRef(), is($agentRef));
431 assertThat($agentEvent->getLicenseRef(), is($licenseRef));
432 assertThat($agentEvent->getMatchId(), is(self::MATCH_ID));
433 assertThat($agentEvent->getPercentage(), is(self::PERCENTAGE));
436 public function testGetUnhandledScannerDetectedLicenses()
441 $this->clearingDao->shouldReceive(
"getRelevantClearingEvents")
442 ->with($this->itemTreeBounds, $this->groupId)
443 ->andReturn(array());
444 $this->agentLicenseEventProcessor->shouldReceive(
"getScannerEvents")
445 ->with($this->itemTreeBounds,LicenseMap::TRIVIAL)->andReturn($scannerResults);
447 $hasUnhandledScannerDetectedLicenses = $this->clearingDecisionProcessor->hasUnhandledScannerDetectedLicenses($this->itemTreeBounds, $this->groupId);
449 assertThat($hasUnhandledScannerDetectedLicenses);
452 public function testGetUnhandledScannerDetectedLicensesWithMatch()
456 $clearingEvent = $this->
createClearingEvent(123, $this->timestamp, $licenseRef->getId(), $licenseRef->getShortName(), $licenseRef->getFullName());
458 $this->clearingDao->shouldReceive(
"getRelevantClearingEvents")->once()
459 ->with($this->itemTreeBounds, $this->groupId)
460 ->andReturn(array($clearingEvent->getLicenseId()=>$clearingEvent));
461 $this->agentLicenseEventProcessor->shouldReceive(
"getScannerEvents")->once()
462 ->with($this->itemTreeBounds,LicenseMap::TRIVIAL)->andReturn($scannerResults);
464 $hasUnhandledScannerDetectedLicenses = $this->clearingDecisionProcessor->hasUnhandledScannerDetectedLicenses($this->itemTreeBounds, $this->groupId);
466 assertThat( $hasUnhandledScannerDetectedLicenses, is(False));
469 public function testGetUnhandledScannerDetectedLicensesWithoutMatch()
474 $clearingEvent = $this->
createClearingEvent(123, $this->timestamp, $licenseRef->getId()+$offset, $licenseRef->getShortName(), $licenseRef->getFullName());
476 $this->clearingDao->shouldReceive(
"getRelevantClearingEvents")
477 ->with($this->itemTreeBounds, $this->groupId)
478 ->andReturn(array($clearingEvent->getLicenseId()=>$clearingEvent));
479 $this->agentLicenseEventProcessor->shouldReceive(
"getScannerEvents")
480 ->with($this->itemTreeBounds,LicenseMap::TRIVIAL)->andReturn($scannerResults);
482 $hasUnhandledScannerDetectedLicenses = $this->clearingDecisionProcessor->hasUnhandledScannerDetectedLicenses($this->itemTreeBounds, $this->groupId);
484 assertThat($hasUnhandledScannerDetectedLicenses, is(True));
487 public function testGetUnhandledScannerDetectedLicensesWithMappedMatch()
492 $clearingEvent = $this->
createClearingEvent($eventId=123, $this->timestamp, $licenseRef->getId()+$offset, $licenseRef->getShortName(), $licenseRef->getFullName());
494 $this->clearingDao->shouldReceive(
"getRelevantClearingEvents")
495 ->with($this->itemTreeBounds, $this->groupId)
496 ->andReturn(array($clearingEvent->getLicenseId()=>$clearingEvent));
497 $this->agentLicenseEventProcessor->shouldReceive(
"getScannerEvents")
498 ->with($this->itemTreeBounds,LicenseMap::CONCLUSION)->andReturn($scannerResults);
500 $licenseMap = M::mock(LicenseMap::class);
501 $licenseMap->shouldReceive(
'getProjectedId')->andReturnUsing(
function($id) {
504 $licenseMap->shouldReceive(
'getUsage')->andReturn(LicenseMap::CONCLUSION);
506 $hasUnhandledScannerDetectedLicenses = $this->clearingDecisionProcessor->hasUnhandledScannerDetectedLicenses($this->itemTreeBounds, $this->groupId, array(), $licenseMap);
508 assertThat( $hasUnhandledScannerDetectedLicenses, is(False) );
523 private function createClearingEvent($eventId, $timestamp, $licenseId, $licenseShortName, $licenseFullName, $eventType = ClearingEventTypes::USER, $isRemoved =
false, $reportInfo =
"<reportInfo>", $comment =
"<comment>")
525 $licenseRef =
new LicenseRef($licenseId, $licenseShortName, $licenseFullName, $licenseShortName);
526 $clearingLicense =
new ClearingLicense($licenseRef, $isRemoved, $reportInfo, $comment);
527 return new ClearingEvent($eventId, $this->uploadTreeId, $timestamp, $this->userId, $this->groupId, $eventType, $clearingLicense);
535 $licenseRef =
new LicenseRef($licenseId, $licenseShortname, $licenseFullName, $licenseShortname);
537 $agentRef = M::mock(AgentRef::class);
539 $scannerEvents = array(
540 $licenseId => array(
new AgentClearingEvent($licenseRef, $agentRef, self::MATCH_ID, self::PERCENTAGE))
543 return array($scannerEvents, $licenseRef, $agentRef);
createClearingEvent($eventId, $timestamp, $licenseId, $licenseShortName, $licenseFullName, $eventType=ClearingEventTypes::USER, $isRemoved=false, $reportInfo="<reportInfo>", $comment="<comment>")
createScannerDetectedLicenses($licenseId=13, $licenseShortname="licA", $licenseFullName="License-A")
Utility functions to process ClearingDecision.
const NO_LICENSE_KNOWN_DECISION_TYPE
Functions to process clearing events.
fo_dbManager * dbManager
fo_dbManager object
Contains business rules for FOSSology.
list_t type structure used to keep various lists. (e.g. there are multiple lists).