|
Blender V4.3
|
#include "testing/testing.h"#include "MEM_guardedalloc.h"#include "BLI_array_utils.h"#include "BLI_listbase.h"#include "BLI_path_utils.hh"#include "BLI_ressource_strings.h"#include "BLI_string.h"Go to the source code of this file.
Macros | |
| #define | TESTFAIL(test) |
Functions | |
| static bool | listbase_is_valid (const ListBase *listbase) |
| static int | char_switch (char *string, char ch_src, char ch_dst) |
| TEST (listbase, FindLinkOrIndex) | |
| TEST (listbase, FindLinkFromStringOrPointer) | |
| TEST (listbase, FromLink) | |
| TEST (listbase, SplitAfter) | |
| static int | testsort_array_str_cmp (const void *a, const void *b) |
| static int | testsort_listbase_str_cmp (const void *a, const void *b) |
| static int | testsort_array_str_cmp_reverse (const void *a, const void *b) |
| static int | testsort_listbase_str_cmp_reverse (const void *a, const void *b) |
| static bool | testsort_listbase_array_str_cmp (ListBase *lb, char **arr, int arr_num) |
| static bool | testsort_listbase_sort_is_stable (ListBase *lb, bool forward) |
| TEST (listbase, Sort) | |
| #define TESTFAIL | ( | test | ) |
Referenced by listbase_is_valid().
|
static |
Definition at line 57 of file BLI_listbase_test.cc.
Referenced by TEST().
|
static |
Definition at line 16 of file BLI_listbase_test.cc.
References ListBase::first, ListBase::last, Link::next, Link::prev, and TESTFAIL.
Referenced by TEST().
| TEST | ( | listbase | , |
| FindLinkFromStringOrPointer | ) |
Definition at line 109 of file BLI_listbase_test.cc.
References BLI_addtail(), BLI_findptr(), BLI_findstring(), BLI_freelistN(), BLI_listbase_clear(), BLI_listbase_string_or_index_find(), BLI_rfindptr(), BLI_rfindstring(), EXPECT_EQ(), MEM_callocN, next, offsetof, ptr, and STRNCPY.
| TEST | ( | listbase | , |
| FindLinkOrIndex | ) |
Definition at line 70 of file BLI_listbase_test.cc.
References BLI_addtail(), BLI_findindex(), BLI_findlink(), BLI_findlinkfrom(), BLI_freelistN(), BLI_listbase_clear(), BLI_rfindlink(), EXPECT_EQ(), ListBase::first, and MEM_callocN.
| TEST | ( | listbase | , |
| FromLink | ) |
Definition at line 167 of file BLI_listbase_test.cc.
References BLI_addtail(), BLI_freelistN(), BLI_listbase_from_link(), EXPECT_EQ(), and MEM_callocN.
| TEST | ( | listbase | , |
| Sort | ) |
Definition at line 326 of file BLI_listbase_test.cc.
References BLI_addtail(), BLI_array_reverse, BLI_listbase_clear(), BLI_listbase_reverse(), BLI_listbase_sort(), BLI_strdupn(), char_switch(), LinkData::data, listbase_is_valid(), MEM_freeN(), MEM_mallocN, testsort_array_str_cmp(), testsort_array_str_cmp_reverse(), testsort_listbase_array_str_cmp(), testsort_listbase_sort_is_stable(), testsort_listbase_str_cmp(), testsort_listbase_str_cmp_reverse(), and words10k.
| TEST | ( | listbase | , |
| SplitAfter | ) |
Definition at line 192 of file BLI_listbase_test.cc.
References BLI_addtail(), BLI_findindex(), BLI_freelistN(), BLI_listbase_clear(), BLI_listbase_count(), BLI_listbase_is_empty(), BLI_listbase_split_after(), EXPECT_EQ(), ListBase::first, ListBase::last, and MEM_callocN.
|
static |
Definition at line 265 of file BLI_listbase_test.cc.
References b.
Referenced by TEST(), and testsort_array_str_cmp_reverse().
|
static |
Definition at line 279 of file BLI_listbase_test.cc.
References b, and testsort_array_str_cmp().
Referenced by TEST().
Definition at line 290 of file BLI_listbase_test.cc.
References LinkData::data, ListBase::first, LinkData::next, and STREQ.
Referenced by TEST().
|
static |
Definition at line 310 of file BLI_listbase_test.cc.
References LinkData::data, ListBase::first, LinkData::next, next, and STREQ.
Referenced by TEST().
|
static |
Definition at line 271 of file BLI_listbase_test.cc.
References b, and LinkData::data.
Referenced by TEST(), and testsort_listbase_str_cmp_reverse().
|
static |
Definition at line 284 of file BLI_listbase_test.cc.
References b, and testsort_listbase_str_cmp().
Referenced by TEST().