FOSSology  4.4.0
Open Source License Compliance by Open Source Software
testRecordMetadataDEB.c File Reference

unit test for RecordMetadataDEB function More...

#include "pkgagent.h"
#include <stdio.h>
#include "CUnit/CUnit.h"
Include dependency graph for testRecordMetadataDEB.c:

Go to the source code of this file.

Macros

#define MAXSQL   4096
 

Functions

void test_RecordMetadataDEB ()
 Test pkgagent.c function RecordMetadataDEB() More...
 

Variables

char * DBConfFile
 DB conf file location.
 
CU_TestInfo testcases_RecordMetadataDEB []
 testcases for function RecordMetadataDEB More...
 

Detailed Description

unit test for RecordMetadataDEB function

Definition in file testRecordMetadataDEB.c.

Function Documentation

◆ test_RecordMetadataDEB()

void test_RecordMetadataDEB ( )

Test pkgagent.c function RecordMetadataDEB()

Test:
  1. Create a test upload in pfile table
  2. Create debpkginfo object and populate it
  3. Call RecordMetadataDEB()
  4. Check if meta data got inserted in DB

Definition at line 26 of file testRecordMetadataDEB.c.

Variable Documentation

◆ testcases_RecordMetadataDEB

CU_TestInfo testcases_RecordMetadataDEB[]
Initial value:
= {
{"Testing the function RecordMetadataDEB", test_RecordMetadataDEB},
CU_TEST_INFO_NULL
}
void test_RecordMetadataDEB()
Test pkgagent.c function RecordMetadataDEB()

testcases for function RecordMetadataDEB

Definition at line 163 of file testRecordMetadataDEB.c.