#include <gtest/gtest.h>#include <cmath>#include <megatree/megatree.h>#include <megatree/allocator.h>#include <megatree/storage_factory.h>#include <megatree/node_file.h>#include <megatree/tree_functions.h>
Go to the source code of this file.
Defines | |
| #define | EXPECT_F3_NEAR(a, b, c, v, tolerance) |
| #define | EXPECT_V3_NEAR(a, b, c, v, tolerance) |
Functions | |
| void | gridTest (bool clear) |
| int | main (int argc, char **argv) |
| TEST (MegaTreeBasics, NodeGeometry) | |
| TEST (MegaTreeBasics, NodeGeometryInPlace) | |
| TEST (MegaTreeBasics, NodeGeometryPrecision_EdgesShouldAlign) | |
| TEST (MegaTreeBasics, Node) | |
| TEST (MegaTreeBasics, OctreeLevel) | |
| TEST (MegaTreeBasics, NodePoint) | |
| TEST (MegaTreeBasics, SinglePointRangeQuery) | |
| TEST (MegaTreeBasics, GridRangeQuery) | |
| TEST (MegaTreeBasics, TestDiskAccess) | |
| TEST (MegaTreeBasics, ColorSanityCheck) | |
| TEST (MegaTreeBasics, ColorsAggregateProperly) | |
Variables | |
| static const double | point_precision = 0.001 |
| #define EXPECT_F3_NEAR | ( | a, | |
| b, | |||
| c, | |||
| v, | |||
| tolerance | |||
| ) |
EXPECT_NEAR(a, v[0], tolerance); \ EXPECT_NEAR(b, v[1], tolerance); \ EXPECT_NEAR(c, v[2], tolerance);
Definition at line 22 of file test_basics.cpp.
| #define EXPECT_V3_NEAR | ( | a, | |
| b, | |||
| c, | |||
| v, | |||
| tolerance | |||
| ) |
if (v.size() != 3) ADD_FAILURE() << "Vector did not have 3 elements"; \ else { \ EXPECT_NEAR(a, v[0], tolerance); \ EXPECT_NEAR(b, v[1], tolerance); \ EXPECT_NEAR(c, v[2], tolerance); \ }
Definition at line 14 of file test_basics.cpp.
| void gridTest | ( | bool | clear | ) |
Definition at line 194 of file test_basics.cpp.
| int main | ( | int | argc, |
| char ** | argv | ||
| ) |
Definition at line 398 of file test_basics.cpp.
| TEST | ( | MegaTreeBasics | , |
| NodeGeometry | |||
| ) |
Definition at line 29 of file test_basics.cpp.
| TEST | ( | MegaTreeBasics | , |
| NodeGeometryInPlace | |||
| ) |
Definition at line 57 of file test_basics.cpp.
| TEST | ( | MegaTreeBasics | , |
| NodeGeometryPrecision_EdgesShouldAlign | |||
| ) |
Definition at line 71 of file test_basics.cpp.
Definition at line 98 of file test_basics.cpp.
| TEST | ( | MegaTreeBasics | , |
| OctreeLevel | |||
| ) |
Definition at line 119 of file test_basics.cpp.
| TEST | ( | MegaTreeBasics | , |
| NodePoint | |||
| ) |
Definition at line 133 of file test_basics.cpp.
| TEST | ( | MegaTreeBasics | , |
| SinglePointRangeQuery | |||
| ) |
Definition at line 162 of file test_basics.cpp.
| TEST | ( | MegaTreeBasics | , |
| GridRangeQuery | |||
| ) |
Definition at line 278 of file test_basics.cpp.
| TEST | ( | MegaTreeBasics | , |
| TestDiskAccess | |||
| ) |
Definition at line 284 of file test_basics.cpp.
| TEST | ( | MegaTreeBasics | , |
| ColorSanityCheck | |||
| ) |
Definition at line 328 of file test_basics.cpp.
| TEST | ( | MegaTreeBasics | , |
| ColorsAggregateProperly | |||
| ) |
Definition at line 364 of file test_basics.cpp.
const double point_precision = 0.001 [static] |
Definition at line 12 of file test_basics.cpp.