Blender V4.3
BLI_heap_test.cc File Reference
#include "testing/testing.h"
#include <cstring>
#include "MEM_guardedalloc.h"
#include "BLI_compiler_attrs.h"
#include "BLI_heap.h"
#include "BLI_rand.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, Empty)
 
 TEST (heap, One)
 
 TEST (heap, Range)
 
 TEST (heap, RangeReverse)
 
 TEST (heap, RangeRemove)
 
 TEST (heap, Duplicates)
 
static void random_heap_helper (const int items_total, const int random_seed)
 
 TEST (heap, Rand1)
 
 TEST (heap, Rand2)
 
 TEST (heap, Rand100)
 
 TEST (heap, ReInsertSimple)
 
static void random_heap_reinsert_helper (const int items_total, const int random_seed)
 
 TEST (heap, ReInsertRandom1)
 
 TEST (heap, ReInsertRandom2)
 
 TEST (heap, ReInsertRandom100)
 
 TEST (heap, ReInsertRandom1024)
 
 TEST (heap, ReInsertRandom2048)
 

Macro Definition Documentation

◆ SIZE

#define SIZE   1024

Definition at line 15 of file BLI_heap_test.cc.

Referenced by TEST(), TEST(), TEST(), TEST(), and TEST().

Function Documentation

◆ random_heap_helper()

static void random_heap_helper ( const int items_total,
const int random_seed )
static

◆ random_heap_reinsert_helper()

◆ range_fl()

static void range_fl ( float * array_tar,
const int size )
static

Definition at line 17 of file BLI_heap_test.cc.

References size().

Referenced by random_heap_helper().

◆ TEST() [1/15]

TEST ( heap ,
Duplicates  )

◆ TEST() [2/15]

TEST ( heap ,
Empty  )

◆ TEST() [3/15]

◆ TEST() [4/15]

TEST ( heap ,
Rand1  )

Definition at line 131 of file BLI_heap_test.cc.

References random_heap_helper().

◆ TEST() [5/15]

TEST ( heap ,
Rand100  )

Definition at line 139 of file BLI_heap_test.cc.

References random_heap_helper().

◆ TEST() [6/15]

TEST ( heap ,
Rand2  )

Definition at line 135 of file BLI_heap_test.cc.

References random_heap_helper().

◆ TEST() [7/15]

◆ TEST() [8/15]

◆ TEST() [9/15]

◆ TEST() [10/15]

TEST ( heap ,
ReInsertRandom1  )

Definition at line 190 of file BLI_heap_test.cc.

References random_heap_reinsert_helper().

◆ TEST() [11/15]

TEST ( heap ,
ReInsertRandom100  )

Definition at line 198 of file BLI_heap_test.cc.

References random_heap_reinsert_helper().

◆ TEST() [12/15]

TEST ( heap ,
ReInsertRandom1024  )

Definition at line 202 of file BLI_heap_test.cc.

References random_heap_reinsert_helper().

◆ TEST() [13/15]

TEST ( heap ,
ReInsertRandom2  )

Definition at line 194 of file BLI_heap_test.cc.

References random_heap_reinsert_helper().

◆ TEST() [14/15]

TEST ( heap ,
ReInsertRandom2048  )

Definition at line 206 of file BLI_heap_test.cc.

References random_heap_reinsert_helper().

◆ TEST() [15/15]