|
Blender
V3.3
|
#include "testing/testing.h"#include <cstring>#include "MEM_guardedalloc.h"#include "BLI_compiler_attrs.h"#include "BLI_heap_simple.h"#include "BLI_rand.h"#include "BLI_sys_types.h"#include "BLI_utildefines.h"Go to the source code of this file.
Macros | |
| #define | SIZE 1024 |
Functions | |
| static void | range_fl (float *array_tar, const int size) |
| TEST (heap, SimpleEmpty) | |
| TEST (heap, SimpleOne) | |
| TEST (heap, SimpleRange) | |
| TEST (heap, SimpleRangeReverse) | |
| TEST (heap, SimpleDuplicates) | |
| static void | random_heapsimple_helper (const int items_total, const int random_seed) |
| TEST (heap, SimpleRand1) | |
| TEST (heap, SimpleRand2) | |
| TEST (heap, SimpleRand100) | |
| #define SIZE 1024 |
Definition at line 14 of file BLI_heap_simple_test.cc.
|
static |
Definition at line 93 of file BLI_heap_simple_test.cc.
References BLI_array_randomize(), BLI_heapsimple_free(), BLI_heapsimple_insert(), BLI_heapsimple_is_empty(), BLI_heapsimple_new(), BLI_heapsimple_pop_min(), EXPECT_EQ(), MEM_freeN, MEM_mallocN, POINTER_AS_INT, POINTER_FROM_INT, and range_fl().
Referenced by TEST().
Definition at line 16 of file BLI_heap_simple_test.cc.
References size().
Referenced by random_heapsimple_helper().
| TEST | ( | heap | , |
| SimpleDuplicates | |||
| ) |
Definition at line 79 of file BLI_heap_simple_test.cc.
References BLI_heapsimple_free(), BLI_heapsimple_insert(), BLI_heapsimple_is_empty(), BLI_heapsimple_new(), BLI_heapsimple_pop_min(), EXPECT_EQ(), POINTER_AS_INT, and SIZE.
| TEST | ( | heap | , |
| SimpleEmpty | |||
| ) |
Definition at line 25 of file BLI_heap_simple_test.cc.
References BLI_heapsimple_free(), BLI_heapsimple_is_empty(), BLI_heapsimple_len(), BLI_heapsimple_new(), and EXPECT_EQ().
| TEST | ( | heap | , |
| SimpleOne | |||
| ) |
Definition at line 35 of file BLI_heap_simple_test.cc.
References BLI_heapsimple_free(), BLI_heapsimple_insert(), BLI_heapsimple_is_empty(), BLI_heapsimple_len(), BLI_heapsimple_new(), BLI_heapsimple_pop_min(), and EXPECT_EQ().
| TEST | ( | heap | , |
| SimpleRand1 | |||
| ) |
Definition at line 110 of file BLI_heap_simple_test.cc.
References random_heapsimple_helper().
| TEST | ( | heap | , |
| SimpleRand100 | |||
| ) |
Definition at line 118 of file BLI_heap_simple_test.cc.
References random_heapsimple_helper().
| TEST | ( | heap | , |
| SimpleRand2 | |||
| ) |
Definition at line 114 of file BLI_heap_simple_test.cc.
References random_heapsimple_helper().
| TEST | ( | heap | , |
| SimpleRange | |||
| ) |
Definition at line 51 of file BLI_heap_simple_test.cc.
References BLI_heapsimple_free(), BLI_heapsimple_insert(), BLI_heapsimple_is_empty(), BLI_heapsimple_new(), BLI_heapsimple_pop_min(), EXPECT_EQ(), POINTER_AS_INT, POINTER_FROM_INT, and SIZE.
| TEST | ( | heap | , |
| SimpleRangeReverse | |||
| ) |
Definition at line 65 of file BLI_heap_simple_test.cc.
References BLI_heapsimple_free(), BLI_heapsimple_insert(), BLI_heapsimple_is_empty(), BLI_heapsimple_new(), BLI_heapsimple_pop_min(), EXPECT_EQ(), POINTER_AS_INT, POINTER_FROM_INT, and SIZE.