Crossfire Server, Trunk
check_stringbuffer.c File Reference
#include <stdlib.h>
#include <string.h>
#include <check.h>
#include "global.h"
#include "sproto.h"
+ Include dependency graph for check_stringbuffer.c:

Go to the source code of this file.

Functions

static void check_sb_equals (StringBuffer *sb, const char *value)
 
int main (void)
 
static void setup (void)
 
END_TEST START_TEST (test_append_int64_max)
 
END_TEST START_TEST (test_append_int64_min)
 
END_TEST START_TEST (test_append_int64_negative)
 
END_TEST START_TEST (test_append_int64_positive)
 
END_TEST START_TEST (test_append_int64_zero)
 
 START_TEST (test_empty)
 
END_TEST START_TEST (test_shared)
 
static END_TEST Suite * stringbuffer_suite (void)
 
static void teardown (void)
 

Function Documentation

◆ check_sb_equals()

static void check_sb_equals ( StringBuffer sb,
const char *  value 
)
static

Definition at line 41 of file check_stringbuffer.c.

References stringbuffer_finish(), and autojail::value.

Referenced by START_TEST().

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ main()

int main ( void  )

Definition at line 117 of file check_stringbuffer.c.

References stringbuffer_suite().

+ Here is the call graph for this function:

◆ setup()

static void setup ( void  )
static

Definition at line 33 of file check_stringbuffer.c.

References init_hash_table().

Referenced by stringbuffer_suite().

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ START_TEST() [1/7]

END_TEST START_TEST ( test_append_int64_max  )

Definition at line 84 of file check_stringbuffer.c.

References check_sb_equals(), stringbuffer_append_int64(), and stringbuffer_new().

+ Here is the call graph for this function:

◆ START_TEST() [2/7]

END_TEST START_TEST ( test_append_int64_min  )

Definition at line 91 of file check_stringbuffer.c.

References check_sb_equals(), stringbuffer_append_int64(), and stringbuffer_new().

+ Here is the call graph for this function:

◆ START_TEST() [3/7]

END_TEST START_TEST ( test_append_int64_negative  )

Definition at line 77 of file check_stringbuffer.c.

References check_sb_equals(), stringbuffer_append_int64(), and stringbuffer_new().

+ Here is the call graph for this function:

◆ START_TEST() [4/7]

END_TEST START_TEST ( test_append_int64_positive  )

Definition at line 70 of file check_stringbuffer.c.

References check_sb_equals(), stringbuffer_append_int64(), and stringbuffer_new().

+ Here is the call graph for this function:

◆ START_TEST() [5/7]

END_TEST START_TEST ( test_append_int64_zero  )

Definition at line 63 of file check_stringbuffer.c.

References check_sb_equals(), stringbuffer_append_int64(), and stringbuffer_new().

+ Here is the call graph for this function:

◆ START_TEST() [6/7]

START_TEST ( test_empty  )

Definition at line 47 of file check_stringbuffer.c.

References check_sb_equals(), and stringbuffer_new().

+ Here is the call graph for this function:

◆ START_TEST() [7/7]

END_TEST START_TEST ( test_shared  )

Definition at line 53 of file check_stringbuffer.c.

References find_string(), free_string(), sstring, stringbuffer_append_string(), stringbuffer_finish_shared(), and stringbuffer_new().

+ Here is the call graph for this function:

◆ stringbuffer_suite()

static END_TEST Suite* stringbuffer_suite ( void  )
static

Definition at line 98 of file check_stringbuffer.c.

References setup(), and teardown().

Referenced by main().

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ teardown()

static void teardown ( void  )
static

Definition at line 37 of file check_stringbuffer.c.

Referenced by stringbuffer_suite().

+ Here is the caller graph for this function: