OpenVPN
Functions
product_database_test.c File Reference
#include <stdarg.h>
#include <stddef.h>
#include <setjmp.h>
#include <cmocka.h>
#include <database.h>
Include dependency graph for product_database_test.c:

Go to the source code of this file.

Functions

DatabaseConnectionconnect_to_product_database (void)
 
DatabaseConnectionconnect_to_database (const char *const url, const unsigned int port)
 
static void test_connect_to_product_database (void **state)
 
static void test_connect_to_product_database_bad_url (void **state)
 
static void test_connect_to_product_database_missing_parameter (void **state)
 
int main (void)
 

Function Documentation

◆ connect_to_database()

DatabaseConnection* connect_to_database ( const char *const  url,
const unsigned int  port 
)

◆ connect_to_product_database()

DatabaseConnection* connect_to_product_database ( void  )

◆ main()

int main ( void  )

◆ test_connect_to_product_database()

static void test_connect_to_product_database ( void **  state)
static

◆ test_connect_to_product_database_bad_url()

static void test_connect_to_product_database_bad_url ( void **  state)
static

◆ test_connect_to_product_database_missing_parameter()

static void test_connect_to_product_database_missing_parameter ( void **  state)
static