![]() |
FOSSology
4.5.1
Open Source License Compliance by Open Source Software
|
unit test for GetMetadataDebBinary function More...

Go to the source code of this file.
Macros | |
| #define | MAXSQL 4096 |
Functions | |
| long | prepare_Database (PGconn *db_conn, struct debpkginfo *pi) |
| Prepare database. More... | |
| int | prepare_Repository () |
| Prepare repository. More... | |
| int | remove_Database (PGconn *db_conn, struct debpkginfo *pi, long upload_pk) |
| remove database More... | |
| int | remove_Repository () |
| remove repository More... | |
| void | test_GetMetadataDebBinary () |
| Test pkgagent.c GetMetadataDebBinary function get Debian binary package info. More... | |
| void | test_GetMetadataDebBinary_no_uploadpk () |
| Test pkgagent.c GetMetadataDebBinary function with no upload_pk in database. More... | |
| void | test_ProcessUpload () |
| Test pkgagent.c ProcessUpload function. More... | |
Variables | |
| char * | DBConfFile |
| DB conf file location. | |
| CU_TestInfo | testcases_GetMetadataDebBinary [] |
| testcases for function GetMetadataDebBinary and ProcessUpload More... | |
unit test for GetMetadataDebBinary function
Definition in file testGetMetadataDebBinary.c.
| long prepare_Database | ( | PGconn * | db_conn, |
| struct debpkginfo * | pi | ||
| ) |
Prepare database.
| db_conn | the database connection |
| pi | the pointer of debpkginfo |
Definition at line 24 of file testGetMetadataDebBinary.c.
| int prepare_Repository | ( | ) |
Prepare repository.
Definition at line 195 of file testGetMetadataDebBinary.c.
| int remove_Database | ( | PGconn * | db_conn, |
| struct debpkginfo * | pi, | ||
| long | upload_pk | ||
| ) |
remove database
| db_conn | the database connection |
| pi | the pointer of debpkginfo |
| upload_pk |
Definition at line 217 of file testGetMetadataDebBinary.c.
| int remove_Repository | ( | ) |
remove repository
Definition at line 306 of file testGetMetadataDebBinary.c.
| void test_GetMetadataDebBinary | ( | ) |
Test pkgagent.c GetMetadataDebBinary function get Debian binary package info.
Definition at line 328 of file testGetMetadataDebBinary.c.
| void test_GetMetadataDebBinary_no_uploadpk | ( | ) |
Test pkgagent.c GetMetadataDebBinary function with no upload_pk in database.
Definition at line 390 of file testGetMetadataDebBinary.c.
| void test_ProcessUpload | ( | ) |
Test pkgagent.c ProcessUpload function.
Give the upload_pk of debian binary package, get the package information about this upload id
Definition at line 426 of file testGetMetadataDebBinary.c.
| CU_TestInfo testcases_GetMetadataDebBinary[] |
testcases for function GetMetadataDebBinary and ProcessUpload
Definition at line 468 of file testGetMetadataDebBinary.c.