Blender V4.3
BLI_heap_simple_test.cc File Reference
#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)
 

Macro Definition Documentation

◆ SIZE

#define SIZE   1024

Function Documentation

◆ random_heapsimple_helper()

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

◆ range_fl()

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

Definition at line 18 of file BLI_heap_simple_test.cc.

References size().

Referenced by random_heapsimple_helper().

◆ TEST() [1/8]

◆ TEST() [2/8]

TEST ( heap ,
SimpleEmpty  )

◆ TEST() [3/8]

◆ TEST() [4/8]

TEST ( heap ,
SimpleRand1  )

Definition at line 112 of file BLI_heap_simple_test.cc.

References random_heapsimple_helper().

◆ TEST() [5/8]

TEST ( heap ,
SimpleRand100  )

Definition at line 120 of file BLI_heap_simple_test.cc.

References random_heapsimple_helper().

◆ TEST() [6/8]

TEST ( heap ,
SimpleRand2  )

Definition at line 116 of file BLI_heap_simple_test.cc.

References random_heapsimple_helper().

◆ TEST() [7/8]

◆ TEST() [8/8]