Luanti 5.10.0-dev
 
Loading...
Searching...
No Matches
TestVoxelArea Class Reference
+ Inheritance diagram for TestVoxelArea:
+ Collaboration diagram for TestVoxelArea:

Public Member Functions

 TestVoxelArea ()
 
const char * getName ()
 
void runTests (IGameDef *gamedef)
 
void test_addarea ()
 
void test_pad ()
 
void test_extent ()
 
void test_volume ()
 
void test_contains_voxelarea ()
 
void test_contains_point ()
 
void test_contains_i ()
 
void test_equal ()
 
void test_plus ()
 
void test_minor ()
 
void test_diff ()
 
void test_intersect ()
 
void test_index_xyz_all_pos ()
 
void test_index_xyz_x_neg ()
 
void test_index_xyz_y_neg ()
 
void test_index_xyz_z_neg ()
 
void test_index_xyz_xy_neg ()
 
void test_index_xyz_xz_neg ()
 
void test_index_xyz_yz_neg ()
 
void test_index_xyz_all_neg ()
 
void test_index_v3s16_all_pos ()
 
void test_index_v3s16_x_neg ()
 
void test_index_v3s16_y_neg ()
 
void test_index_v3s16_z_neg ()
 
void test_index_v3s16_xy_neg ()
 
void test_index_v3s16_xz_neg ()
 
void test_index_v3s16_yz_neg ()
 
void test_index_v3s16_all_neg ()
 
void test_add_x ()
 
void test_add_y ()
 
void test_add_z ()
 
void test_add_p ()
 
- Public Member Functions inherited from TestBase
bool testModule (IGameDef *gamedef)
 
std::string getTestTempDirectory ()
 
std::string getTestTempFile ()
 
void runTest (const char *name, std::function< void()> &&test)
 

Additional Inherited Members

- Public Attributes inherited from TestBase
u32 num_tests_failed
 
u32 num_tests_run
 

Constructor & Destructor Documentation

◆ TestVoxelArea()

TestVoxelArea::TestVoxelArea ( )
inline

References TestManager::registerTestModule().

+ Here is the call graph for this function:

Member Function Documentation

◆ getName()

const char * TestVoxelArea::getName ( )
inlinevirtual

Implements TestBase.

◆ runTests()

◆ test_add_p()

void TestVoxelArea::test_add_p ( )

References VoxelArea::add_p(), and UASSERTEQ.

Referenced by runTests().

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ test_add_x()

void TestVoxelArea::test_add_x ( )

References VoxelArea::add_x(), and UASSERTEQ.

Referenced by runTests().

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ test_add_y()

void TestVoxelArea::test_add_y ( )

References VoxelArea::add_y(), and UASSERTEQ.

Referenced by runTests().

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ test_add_z()

void TestVoxelArea::test_add_z ( )

References VoxelArea::add_z(), and UASSERTEQ.

Referenced by runTests().

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ test_addarea()

void TestVoxelArea::test_addarea ( )

References VoxelArea::addArea(), VoxelArea::MaxEdge, VoxelArea::MinEdge, and UASSERT.

Referenced by runTests().

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ test_contains_i()

void TestVoxelArea::test_contains_i ( )

References VoxelArea::contains(), VoxelArea::getVolume(), and UASSERTEQ.

Referenced by runTests().

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ test_contains_point()

void TestVoxelArea::test_contains_point ( )

References VoxelArea::contains(), and UASSERTEQ.

Referenced by runTests().

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ test_contains_voxelarea()

void TestVoxelArea::test_contains_voxelarea ( )

References VoxelArea::contains(), and UASSERTEQ.

Referenced by runTests().

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ test_diff()

void TestVoxelArea::test_diff ( )

References VoxelArea::diff(), UASSERT, and UASSERTEQ.

Referenced by runTests().

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ test_equal()

void TestVoxelArea::test_equal ( )

References UASSERTEQ.

Referenced by runTests().

+ Here is the caller graph for this function:

◆ test_extent()

void TestVoxelArea::test_extent ( )

References VoxelArea::getExtent(), and UASSERT.

Referenced by runTests().

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ test_index_v3s16_all_neg()

void TestVoxelArea::test_index_v3s16_all_neg ( )

References VoxelArea::index(), and UASSERTEQ.

Referenced by runTests().

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ test_index_v3s16_all_pos()

void TestVoxelArea::test_index_v3s16_all_pos ( )

References VoxelArea::index(), and UASSERTEQ.

Referenced by runTests().

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ test_index_v3s16_x_neg()

void TestVoxelArea::test_index_v3s16_x_neg ( )

References VoxelArea::index(), and UASSERTEQ.

Referenced by runTests().

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ test_index_v3s16_xy_neg()

void TestVoxelArea::test_index_v3s16_xy_neg ( )

References VoxelArea::index(), and UASSERTEQ.

Referenced by runTests().

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ test_index_v3s16_xz_neg()

void TestVoxelArea::test_index_v3s16_xz_neg ( )

References VoxelArea::index(), and UASSERTEQ.

Referenced by runTests().

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ test_index_v3s16_y_neg()

void TestVoxelArea::test_index_v3s16_y_neg ( )

References VoxelArea::index(), and UASSERTEQ.

Referenced by runTests().

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ test_index_v3s16_yz_neg()

void TestVoxelArea::test_index_v3s16_yz_neg ( )

References VoxelArea::index(), and UASSERTEQ.

Referenced by runTests().

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ test_index_v3s16_z_neg()

void TestVoxelArea::test_index_v3s16_z_neg ( )

References VoxelArea::index(), and UASSERTEQ.

Referenced by runTests().

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ test_index_xyz_all_neg()

void TestVoxelArea::test_index_xyz_all_neg ( )

References VoxelArea::index(), and UASSERTEQ.

Referenced by runTests().

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ test_index_xyz_all_pos()

void TestVoxelArea::test_index_xyz_all_pos ( )

References VoxelArea::index(), and UASSERTEQ.

Referenced by runTests().

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ test_index_xyz_x_neg()

void TestVoxelArea::test_index_xyz_x_neg ( )

References VoxelArea::index(), and UASSERTEQ.

Referenced by runTests().

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ test_index_xyz_xy_neg()

void TestVoxelArea::test_index_xyz_xy_neg ( )

References VoxelArea::index(), and UASSERTEQ.

Referenced by runTests().

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ test_index_xyz_xz_neg()

void TestVoxelArea::test_index_xyz_xz_neg ( )

References VoxelArea::index(), and UASSERTEQ.

Referenced by runTests().

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ test_index_xyz_y_neg()

void TestVoxelArea::test_index_xyz_y_neg ( )

References VoxelArea::index(), and UASSERTEQ.

Referenced by runTests().

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ test_index_xyz_yz_neg()

void TestVoxelArea::test_index_xyz_yz_neg ( )

References VoxelArea::index(), and UASSERTEQ.

Referenced by runTests().

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ test_index_xyz_z_neg()

void TestVoxelArea::test_index_xyz_z_neg ( )

References VoxelArea::index(), and UASSERTEQ.

Referenced by runTests().

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ test_intersect()

void TestVoxelArea::test_intersect ( )

References UASSERT.

Referenced by runTests().

+ Here is the caller graph for this function:

◆ test_minor()

void TestVoxelArea::test_minor ( )

References UASSERT.

Referenced by runTests().

+ Here is the caller graph for this function:

◆ test_pad()

void TestVoxelArea::test_pad ( )

References VoxelArea::MaxEdge, VoxelArea::MinEdge, VoxelArea::pad(), and UASSERT.

Referenced by runTests().

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ test_plus()

void TestVoxelArea::test_plus ( )

References UASSERT.

Referenced by runTests().

+ Here is the caller graph for this function:

◆ test_volume()

void TestVoxelArea::test_volume ( )

References VoxelArea::getVolume(), and UASSERTEQ.

Referenced by runTests().

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

The documentation for this class was generated from the following file: