Unit Tests¶
Unit Tests per module¶
Number of unit test each module contains. Because of module inter-dependency, one unit test originating in a module may actually test part of other modules at the same time. Although it is interesting to get an absolute number of tests, it is more meaningful to look at the code coverage.
Module |
Tests |
---|---|
geostats |
125 |
logging |
1 |
metrics |
0 |
objects |
22 |
operations |
25 |
plotting |
0 |
stats |
1 |
utilities |
2 |
Total |
176 |
Unit Test Coverage Summary¶
Represents the percentage (%) of code covered by the unit tests. This ratio actually takes into account the number of statements executed versus missed. Coverage metrics are gathered by pytest-cov.
File |
Coverage (%) |
---|---|
geolime/enumerator/enumerator.py |
100.00% |
geolime/geostats/estimation/cond_exp.py |
100.00% |
geolime/geostats/estimation/idw.py |
95.00% |
geolime/geostats/estimation/kriging.py |
68.00% |
geolime/geostats/estimation/uniform_conditioning.py |
79.00% |
geolime/geostats/math/anamorphosis.py |
72.00% |
geolime/geostats/math/gauss_score.py |
100.00% |
geolime/geostats/math/hermite.py |
81.00% |
geolime/geostats/math/neighborhood.py |
95.00% |
geolime/geostats/models/autofit.py |
97.00% |
geolime/geostats/models/covariance.py |
82.00% |
geolime/geostats/models/model.py |
100.00% |
geolime/geostats/patterns/grid_pattern_generator.py |
100.00% |
geolime/geostats/patterns/pattern_generator.py |
80.00% |
geolime/geostats/simulation/turning_bands.py |
96.00% |
geolime/geostats/variogram/variogram.py |
94.00% |
geolime/logger_config.py |
100.00% |
geolime/metrics/spatial_autocorrelation.py |
8.00% |
geolime/objects/blockmodel.py |
100.00% |
geolime/objects/drillhole.py |
60.00% |
geolime/objects/drillhole_api.py |
91.00% |
geolime/objects/geometricalobject.py |
83.00% |
geolime/objects/grid.py |
93.00% |
geolime/objects/grid_api.py |
100.00% |
geolime/objects/polygon.py |
100.00% |
geolime/objects/polygon_api.py |
82.00% |
geolime/objects/surface.py |
56.00% |
geolime/objects/surface_api.py |
22.00% |
geolime/operations/drillhole/cell_declustering.py |
100.00% |
geolime/operations/drillhole/compositing.py |
91.00% |
geolime/operations/drillhole/desurveying.py |
100.00% |
geolime/operations/drillhole/drape_drillholes_to_surface.py |
36.00% |
geolime/operations/drillhole/find_duplicates.py |
100.00% |
geolime/operations/drillhole/moving_window_declustering.py |
92.00% |
geolime/operations/grid/editing.py |
100.00% |
geolime/operations/grid/geometry_calculations.py |
51.00% |
geolime/operations/grid/utils.py |
63.00% |
geolime/operations/polygon/geometry_calculations.py |
77.00% |
geolime/operations/surface/geometry_calculations.py |
29.00% |
geolime/plotting/declus_plot.py |
16.00% |
geolime/plotting/grid_plot.py |
15.00% |
geolime/plotting/vario_plot.py |
13.00% |
geolime/stats/grid_stats.py |
100.00% |
geolime/utilities/dataframe.py |
100.00% |
geolime/utilities/distance.py |
97.00% |
geolime/utilities/trigonometry.py |
87.00% |
Total |
77.00% |