TerrainGen coverage


terraingen/
Coverage:
low: ≥ 0%
medium: ≥ 75.0%
high: ≥ 90.0%
Lines:
21 / 21
100.0%
Branches:
6 / 13
46.2%
Functions:
3 / 3
100.0%

python/src/module.cpp
Line Branch Exec Source
1 #include "bindings.h"
2
3
4/11
PyInit__terraingen:
✗ Branch 0 not taken.
✓ Branch 1 taken 44 times.
✓ Branch 2 taken 44 times.
✗ Branch 3 not taken.
nanobind__terraingen_exec(_object*):
✗ Branch 1 not taken.
✓ Branch 2 taken 44 times.
✓ Branch 4 taken 44 times.
✗ Branch 8 not taken.
✗ Branch 9 not taken.
✗ Branch 10 not taken.
✗ Branch 18 not taken.
220 NB_MODULE(_terraingen, m) {
4
2/2
✓ Branch 1 taken 44 times.
✓ Branch 4 taken 44 times.
44 m.doc() = "TerrainGen: scientific terrain generation for planetary surfaces.";
5 // Python subclasses (distributions, profiles, layers) held by C++ objects in a script's
6 // globals are still referenced when the interpreter finalizes, which nanobind would report as
7 // leaks on every exit; the process frees them.
8 44 nanobind::set_leak_warnings(false);
9 using namespace terraingen::python;
10 44 BindUtil(m);
11 44 BindRaster(m);
12 44 BindNoise(m);
13 44 BindRandom(m);
14 44 BindGpu(m);
15 44 BindMesh(m);
16 44 BindDistribution(m);
17 44 BindCraterModels(m);
18 44 BindSources(m);
19 44 BindLayers(m);
20 44 BindCraters(m);
21 44 BindBoulders(m);
22 44 BindAlbedo(m);
23 44 BindMaterials(m);
24 44 BindPipeline(m);
25 44 }
26