FOSSology  3.2.0rc1
Open Source License Compliance by Open Source Software
Fossology\Lib\Dao\UploadDaoTest Class Reference
Inheritance diagram for Fossology\Lib\Dao\UploadDaoTest:
Inheritance graph
Collaboration diagram for Fossology\Lib\Dao\UploadDaoTest:
Collaboration graph

Public Member Functions

 testGetNextItemWithEmptyArchive ()
 
 testGetPreviousItemWithEmptyArchive ()
 
 testGetNextItemWithSingleFile ()
 
 testGetPreviousItemWithSingleFile ()
 
 testGetNextItemWithNestedFile ()
 
 testGetPreviousItemWithNestedFile ()
 
 testGetNextItemWithFileAfterEmptyDirectory ()
 
 testGetPreviousItemWithFileAfterEmptyDirectory ()
 
 testGetNextItemWithMultipleFiles ()
 
 testGetPreviousItemWithMultipleFiles ()
 
 testGetNextItemUsesRecursiveAndRegularSearchAsFallback ()
 
 testGetPrevItemUsesRecursiveAndRegularSearchAsFallback ()
 
 testGetNextItemUsesRecursiveOnly ()
 
 testGetPrevItemUsesRecursiveOnly ()
 
 testGetNextFull ()
 
 testGetPreviousFull ()
 
 testCountNonArtifactDescendants ()
 
 testGetUploadParent ()
 
 testGetUploadParentFromBrokenTree ()
 
 testGetUploadParentFromNonExistingTree ()
 
 testGetUploadHashes ()
 
 testGetFatItem ()
 

Protected Member Functions

 setUp ()
 
 tearDown ()
 
 prepareUploadTree ($uploadTreeArray=array())
 
 prepareModularTable ($subentries=array())
 
 getSubentriesForSingleFile ()
 
 getSubentriesForNestedFile ()
 
 getSubentriesForFileAfterEmptyDirectory ()
 
 getSubentriesForMultipleFiles ()
 
 getTestFileStructure ()
 

Private Attributes

 $testDb
 
 $dbManager
 
 $uploadDao
 
 $entries
 

Detailed Description

Definition at line 28 of file UploadDaoTest.php.

Member Function Documentation

Fossology\Lib\Dao\UploadDaoTest::getSubentriesForFileAfterEmptyDirectory ( )
protected
Returns
array

docs <-dir docs/txt <-dir README <-file

Definition at line 226 of file UploadDaoTest.php.

Fossology\Lib\Dao\UploadDaoTest::getSubentriesForMultipleFiles ( )
protected
Returns
array

Definition at line 244 of file UploadDaoTest.php.

Fossology\Lib\Dao\UploadDaoTest::getSubentriesForNestedFile ( )
protected
Returns
array

Definition at line 214 of file UploadDaoTest.php.

Fossology\Lib\Dao\UploadDaoTest::getSubentriesForSingleFile ( )
protected
Returns
array

Definition at line 206 of file UploadDaoTest.php.

Fossology\Lib\Dao\UploadDaoTest::prepareModularTable (   $subentries = array())
protected
Parameters
$subentries
Returns
array

Definition at line 188 of file UploadDaoTest.php.

Fossology\Lib\Dao\UploadDaoTest::prepareUploadTree (   $uploadTreeArray = array())
protected
Parameters
array$uploadTreeArray
Exceptions

Definition at line 174 of file UploadDaoTest.php.

Fossology\Lib\Dao\UploadDaoTest::testGetUploadParentFromBrokenTree ( )

Missing upload tree parent for upload

Definition at line 438 of file UploadDaoTest.php.

Fossology\Lib\Dao\UploadDaoTest::testGetUploadParentFromNonExistingTree ( )

Missing upload tree parent for upload

Definition at line 447 of file UploadDaoTest.php.

Member Data Documentation

Fossology\Lib\Dao\UploadDaoTest::$entries
private
Initial value:
= array(
3653, 3668, 3683, 3685, 3671, 3665, 3676, 3675, 3681, 3677, 3673, 3658, 3660, 3686,
)

Filestructure ( NoLic files are removed) NR uploadtree_pk A 1 3653 B_NoLic C 2 3668 D D/E 3 3683 D/F_NoLic D/G 4 3685 H H/I_NoLic H/J 5 3671 H/K_NoLic L L/L1 L/L1/L1a_NoLic L/L2 L/L2/L2a 6 3665 L/L3 L/L3/L3a_NoLic M M/M1 N N/N1 7 3676 N/N2 N/N2/N2a_NoLic N/N3 8 3675 N/N4 N/N4/N4a 9 3681 N/N5 10 3677 O 11 3673 P P/P1_NoLic P/P2 P/P2/P2a 12 3658 P/P3 13 3660 R 14 3686

Definition at line 295 of file UploadDaoTest.php.


The documentation for this class was generated from the following file: