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

Testing for the function DBLoadMime. More...

#include <CUnit/CUnit.h>
#include "finder.h"
#include <string.h>
Include dependency graph for testDBLoadMime.c:

Go to the source code of this file.

Functions

void DBLoadMime ()
 Populate the DBMime table.
 
int DBLoadMimeInit ()
 initialize DB
 
int DBLoadMimeClean ()
 clean the env
 
void testDBLoadMime ()
 for function DBLoadMime() More...
 

Variables

char * DBConfFile
 DB conf file location.
 
CU_TestInfo testcases_DBLoadMime []
 testcases for function DBLoadGold More...
 

Detailed Description

Testing for the function DBLoadMime.

Definition in file testDBLoadMime.c.

Function Documentation

◆ testDBLoadMime()

void testDBLoadMime ( )

for function DBLoadMime()

Test:
  1. Call DBLoadMime()
  2. Check if MaxDBMime equals actual count in mimetype table

Definition at line 56 of file testDBLoadMime.c.

Variable Documentation

◆ testcases_DBLoadMime

CU_TestInfo testcases_DBLoadMime[]
Initial value:
=
{
{"DBLoadMime:InsertOctet", testDBLoadMime},
CU_TEST_INFO_NULL
}
void testDBLoadMime()
for function DBLoadMime()

testcases for function DBLoadGold

Definition at line 113 of file testDBLoadMime.c.