Lumiera 0.pre.04~rc.1
»edit your freedom«
Loading...
Searching...
No Matches
test-configloader.c File Reference

C unit test to cover a config system draft implementation. More...

Go to the source code of this file.

Description

C unit test to cover a config system draft implementation.

Deprecated:
as of 2017 it is very likely we'll use a different approach

Definition in file test-configloader.c.

#include "lib/tmpbuf.h"
#include "common/config.h"
#include "common/configitem.h"
#include "lib/test/test.h"

Functions

TESTS_BEGIN TEST (init)
 
 TEST (configitem_simple)
 
 TEST (lookup)
 
 TEST (change_value)
 
 TEST (basic_set_get)
 
 TEST (number_get)
 
 TEST (number_get_nodefault)
 
 TEST (number_set)
 
 TEST (string_get)
 
 TEST (string_set)
 
 TEST (word_get)
 
 TEST (word_set)
 
 TEST (configitem_simple_ctor_dtor)
 
 TEST (configitem_simple_content_check)
 
 TEST (wordlist_get_nth)
 
 TEST (wordlist_find)
 
 TEST (wordlist_replace)
 
 TEST (wordlist_add)
 

Function Documentation

◆ TEST() [1/18]

TESTS_BEGIN TEST ( init  )

Definition at line 30 of file test-configloader.c.

References lumiera_config_destroy().

+ Here is the call graph for this function:

◆ TEST() [2/18]

TEST ( configitem_simple  )

Definition at line 44 of file test-configloader.c.

References lumiera_configitem_delete(), lumiera_configitem_new(), and NULL.

+ Here is the call graph for this function:

◆ TEST() [3/18]

TEST ( lookup  )

Definition at line 66 of file test-configloader.c.

References lumiera_config_lookup_destroy(), lumiera_config_lookup_init(), lumiera_config_lookup_insert(), lumiera_config_lookup_item_find(), lumiera_config_lookup_remove(), and lumiera_configitem_new().

+ Here is the call graph for this function:

◆ TEST() [4/18]

TEST ( change_value  )

Definition at line 85 of file test-configloader.c.

References lumiera_config_get(), lumiera_config_set(), and lumiera_error().

+ Here is the call graph for this function:

◆ TEST() [5/18]

TEST ( basic_set_get  )

Definition at line 112 of file test-configloader.c.

References lumiera_config_get(), lumiera_config_set(), and lumiera_error().

+ Here is the call graph for this function:

◆ TEST() [6/18]

TEST ( number_get  )

Definition at line 133 of file test-configloader.c.

References lumiera_config_number_get(), lumiera_config_setdefault(), lumiera_error(), and lumiera_tmpbuf_snprintf().

+ Here is the call graph for this function:

◆ TEST() [7/18]

TEST ( number_get_nodefault  )

Definition at line 149 of file test-configloader.c.

References lumiera_config_number_get(), and lumiera_error().

+ Here is the call graph for this function:

◆ TEST() [8/18]

TEST ( number_set  )

Definition at line 162 of file test-configloader.c.

References lumiera_config_number_get(), lumiera_config_number_set(), and lumiera_error().

+ Here is the call graph for this function:

◆ TEST() [9/18]

TEST ( string_get  )

Definition at line 179 of file test-configloader.c.

References lumiera_config_setdefault(), lumiera_config_string_get(), lumiera_error(), and lumiera_tmpbuf_snprintf().

+ Here is the call graph for this function:

◆ TEST() [10/18]

TEST ( string_set  )

Definition at line 195 of file test-configloader.c.

References lumiera_config_string_get(), lumiera_config_string_set(), and lumiera_error().

+ Here is the call graph for this function:

◆ TEST() [11/18]

TEST ( word_get  )

Definition at line 211 of file test-configloader.c.

References lumiera_config_destroy(), lumiera_config_setdefault(), lumiera_config_word_get(), lumiera_error(), and lumiera_tmpbuf_snprintf().

+ Here is the call graph for this function:

◆ TEST() [12/18]

TEST ( word_set  )

Definition at line 229 of file test-configloader.c.

References lumiera_config_word_get(), lumiera_config_word_set(), and lumiera_error().

+ Here is the call graph for this function:

◆ TEST() [13/18]

TEST ( configitem_simple_ctor_dtor  )

Definition at line 245 of file test-configloader.c.

References lumiera_configitem_new().

+ Here is the call graph for this function:

◆ TEST() [14/18]

TEST ( configitem_simple_content_check  )

Definition at line 255 of file test-configloader.c.

References lumiera_configitem_new().

+ Here is the call graph for this function:

◆ TEST() [15/18]

TEST ( wordlist_get_nth  )

Definition at line 282 of file test-configloader.c.

References lumiera_config_wordlist_get_nth(), lumiera_config_wordlist_set(), and lumiera_error().

+ Here is the call graph for this function:

◆ TEST() [16/18]

TEST ( wordlist_find  )

Definition at line 297 of file test-configloader.c.

References lumiera_config_wordlist_find(), lumiera_config_wordlist_set(), and lumiera_error().

+ Here is the call graph for this function:

◆ TEST() [17/18]

TEST ( wordlist_replace  )

Definition at line 312 of file test-configloader.c.

References lumiera_config_wordlist_replace(), lumiera_config_wordlist_set(), lumiera_error(), and NULL.

+ Here is the call graph for this function:

◆ TEST() [18/18]

TEST ( wordlist_add  )

Definition at line 332 of file test-configloader.c.

References lumiera_config_wordlist_add(), lumiera_config_wordlist_set(), and lumiera_error().

+ Here is the call graph for this function: