GenSVM
Functions
test_gensvm_base.c File Reference

Unit tests for gensvm_base.c functions. More...

#include "minunit.h"
#include "gensvm_base.h"
Include dependency graph for test_gensvm_base.c:

Go to the source code of this file.

Functions

char * test_init_free_model_1 ()
 
char * test_init_free_model_2 ()
 
char * test_allocate_free_model ()
 
char * test_reallocate_free_model ()
 
char * test_init_free_data_1 ()
 
char * test_init_free_data_2 ()
 
char * test_init_free_data_3 ()
 
char * test_init_free_work ()
 
void fill_with_noise (double *ptr, int elem)
 
bool all_elements_zero (double *ptr, int elem)
 
char * test_reset_work ()
 
char * all_tests ()
 
 RUN_TESTS (all_tests)
 

Detailed Description

Unit tests for gensvm_base.c functions.

Author
G.J.J. van den Burg
Date
2016-05-01

This file is part of GenSVM.

GenSVM is free software: you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation, either version 3 of the License, or (at your option) any later version.

GenSVM is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details.

You should have received a copy of the GNU General Public License along with GenSVM. If not, see http://www.gnu.org/licenses/.

Definition in file test_gensvm_base.c.

Function Documentation

◆ all_elements_zero()

bool all_elements_zero ( double *  ptr,
int  elem 
)

Definition at line 129 of file test_gensvm_base.c.

◆ all_tests()

char* all_tests ( )

Definition at line 184 of file test_gensvm_base.c.

Here is the call graph for this function:

◆ fill_with_noise()

void fill_with_noise ( double *  ptr,
int  elem 
)

Definition at line 121 of file test_gensvm_base.c.

◆ RUN_TESTS()

RUN_TESTS ( all_tests  )

◆ test_allocate_free_model()

char* test_allocate_free_model ( )

Definition at line 45 of file test_gensvm_base.c.

Here is the call graph for this function:

◆ test_init_free_data_1()

char* test_init_free_data_1 ( )

Definition at line 73 of file test_gensvm_base.c.

Here is the call graph for this function:

◆ test_init_free_data_2()

char* test_init_free_data_2 ( )

Definition at line 80 of file test_gensvm_base.c.

Here is the call graph for this function:

◆ test_init_free_data_3()

char* test_init_free_data_3 ( )

Definition at line 87 of file test_gensvm_base.c.

Here is the call graph for this function:

◆ test_init_free_model_1()

char* test_init_free_model_1 ( )

Definition at line 30 of file test_gensvm_base.c.

Here is the call graph for this function:

◆ test_init_free_model_2()

char* test_init_free_model_2 ( )

Definition at line 37 of file test_gensvm_base.c.

Here is the call graph for this function:

◆ test_init_free_work()

char* test_init_free_work ( )

Definition at line 95 of file test_gensvm_base.c.

Here is the call graph for this function:

◆ test_reallocate_free_model()

char* test_reallocate_free_model ( )

Definition at line 56 of file test_gensvm_base.c.

Here is the call graph for this function:

◆ test_reset_work()

char* test_reset_work ( )

Definition at line 139 of file test_gensvm_base.c.

Here is the call graph for this function: