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

Unit tests for the libfossagent. More...

#include <libfossdb.h>
#include <string.h>
#include <stdio.h>
#include <unistd.h>
#include <CUnit/CUnit.h>
Include dependency graph for test_libfossdb.c:

Go to the source code of this file.

Macros

#define COMMIT_HASH   "COMMIT_HASH Unknown"
 

Functions

void test_fo_tableExists ()
 fo_tableExists() tests More...
 

Variables

char * dbConf
 
CU_TestInfo libfossdb_testcases []
 

Detailed Description

Unit tests for the libfossagent.

Definition in file test_libfossdb.c.

Function Documentation

◆ test_fo_tableExists()

void test_fo_tableExists ( )

fo_tableExists() tests

Test:
  1. Check for an existing table
  2. Check for table that does not exist
  3. Check for a non table entities (sequence, constraint, ...)
Returns
void

Definition at line 37 of file test_libfossdb.c.

Variable Documentation

◆ libfossdb_testcases

CU_TestInfo libfossdb_testcases[]
Initial value:
=
{
{"fo_tableExists()", test_fo_tableExists},
CU_TEST_INFO_NULL
}
void test_fo_tableExists()
fo_tableExists() tests

Definition at line 67 of file test_libfossdb.c.