camel-test
3
CAMEL Library

# camel-test

## Synopsis

    void                camel_test_failv                    (const char *why,
                                                             va_list ap);
    #define             check                               (x)
    #define             check_msg                           (x, y, z...)
    #define             check_count                         (object, expected)
    #define             check_unref                         (object, expected)
    #define             test_free                           (mem)
    #define             push
    #define             pull
    void                camel_test_init                     (int argc,
                                                             char **argv);
    void                camel_test_start                    (const char *what);
    void                camel_test_end                      (void);
    void                camel_test_push                     (const char *what,
                                                             ...);
    void                camel_test_pull                     (void);
    void                camel_test_fail                     (const char *why,
                                                             ...);
    void                camel_test_nonfatal                 (const char *why,
                                                             ...);
    void                camel_test_fatal                    (void);
    int                 string_equal                        (const char *a,
                                                             const char *b);

## Description

## Details

### camel_test_failv ()

    void                camel_test_failv                    (const char *why,
                                                             va_list ap);

`why` :

`ap` :

### check()

    #define check(x) do {if (!(x)) { camel_test_fail("%s:%d: %s", __FILE__, __LINE__, #x); } } while (0)

`x` :

### check_msg()

    #define check_msg(x, y, z...) do {if (!(x)) { camel_test_fail("%s:%d: %s\n\t" #y, __FILE__, __LINE__, #x, ##z); } } while (0)

`x` :

`y` :

`z...` :

### check_count()

    #define             check_count(object, expected)

`object` :

`expected` :

### check_unref()

    #define             check_unref(object, expected)

`object` :

`expected` :

### test_free()

    #define test_free(mem) (g_free(mem), mem=NULL)

`mem` :

### push

    #define push camel_test_push

### pull

    #define pull camel_test_pull

### camel_test_init ()

    void                camel_test_init                     (int argc,
                                                             char **argv);

`argc` :

`argv` :

### camel_test_start ()

    void                camel_test_start                    (const char *what);

`what` :

### camel_test_end ()

    void                camel_test_end                      (void);

### camel_test_push ()

    void                camel_test_push                     (const char *what,
                                                             ...);

`what` :

`...` :

### camel_test_pull ()

    void                camel_test_pull                     (void);

### camel_test_fail ()

    void                camel_test_fail                     (const char *why,
                                                             ...);

`why` :

`...` :

### camel_test_nonfatal ()

    void                camel_test_nonfatal                 (const char *why,
                                                             ...);

`why` :

`...` :

### camel_test_fatal ()

    void                camel_test_fatal                    (void);

### string_equal ()

    int                 string_equal                        (const char *a,
                                                             const char *b);

`a` :

`b` :

Returns :