Blender  V3.3
Macros | Functions
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

Definition at line 14 of file BLI_heap_simple_test.cc.

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 16 of file BLI_heap_simple_test.cc.

References size().

Referenced by random_heapsimple_helper().

◆ TEST() [1/8]

TEST ( heap  ,
SimpleDuplicates   
)

◆ TEST() [2/8]

TEST ( heap  ,
SimpleEmpty   
)

◆ TEST() [3/8]

TEST ( heap  ,
SimpleOne   
)

◆ TEST() [4/8]

TEST ( heap  ,
SimpleRand1   
)

Definition at line 110 of file BLI_heap_simple_test.cc.

References random_heapsimple_helper().

◆ TEST() [5/8]

TEST ( heap  ,
SimpleRand100   
)

Definition at line 118 of file BLI_heap_simple_test.cc.

References random_heapsimple_helper().

◆ TEST() [6/8]

TEST ( heap  ,
SimpleRand2   
)

Definition at line 114 of file BLI_heap_simple_test.cc.

References random_heapsimple_helper().

◆ TEST() [7/8]

TEST ( heap  ,
SimpleRange   
)

◆ TEST() [8/8]

TEST ( heap  ,
SimpleRangeReverse   
)