Skip to content

Improve Coverage #290

Description

@ndem0

Is your feature request related to a problem? Please describe.
Several tests are missing; the coverage of the package is 56%.

Describe the solution you'd like
Improve unit tests, in order to have a more robust package.

Additional context

Filename                                       Stmts    Miss  Cover    Missing
-------------------------------------------  -------  ------  -------  --------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
__init__.py                                        8       0  100.00%
database.py                                       99      21  78.79%   51-53, 77, 134-137, 148-149, 152-153, 175-176, 180-185, 193-194, 208-209, 233-235
parameter.py                                      21       2  90.48%   41-42
reducedordermodel.py                             411     201  51.09%   125, 156, 165, 174, 183, 192, 201, 205-206, 210-211, 215-216, 231, 260, 332-341, 381, 402-412, 427-430, 447-454, 477-492, 513-531, 548-570, 585-586, 619-637, 669-691, 765-776, 786-787, 797, 803, 809, 818, 824, 830, 839, 847, 851-852, 856-857, 861-862, 892, 900-904, 915, 941-951, 966-969, 986-996, 1024-1040, 1061-1080, 1097-1119, 1134-1135, 1168-1186, 1218-1240
regular_grid.py                                   47       2  95.74%   113-114
snapshot.py                                       46      10  78.26%   48-50, 108, 120-127
approximation/__init__.py                          9       0  100.00%
approximation/ann.py                              47       3  93.62%   147-149
approximation/approximation.py                     6       0  100.00%
approximation/gpr.py                              45       0  100.00%
approximation/kneighbors_regressor.py              8       0  100.00%
approximation/linear.py                           28       2  92.86%   52-53
approximation/neighbors_regressor.py              12       1  91.67%   50
approximation/radius_neighbors_regressor.py        5       0  100.00%
approximation/rbf.py                              33       0  100.00%
approximation/sklearn_approximation.py            32       4  87.50%   58, 82, 84, 109
parallel/__init__.py                              16       0  100.00%
parallel/ae.py                                   102      81  20.59%   68-93, 101-103, 109-111, 125-153, 175-198, 207-212, 221-235, 247, 259
parallel/ae_eddl.py                              209     206  1.44%    9-510
parallel/ann.py                                   67      52  22.39%   46-62, 72, 82, 96-104, 129-152, 163-169
parallel/approximation.py                          6       0  100.00%
parallel/gpr.py                                   42      29  30.95%   38-40, 63-75, 89-96, 110-130
parallel/kneighbors_regressor.py                   5       1  80.00%   17
parallel/linear.py                                30      18  40.00%   24-25, 38-52, 65-78
parallel/neighbors_regressor.py                   20      11  45.00%   25-28, 39-48
parallel/pod.py                                  109      84  22.94%   10-11, 17-23, 70-97, 106, 115, 125-126, 135-138, 147-159, 171, 183, 197-212, 228-231, 247-274, 286-307
parallel/radius_neighbors_regressor.py             5       1  80.00%   17
parallel/rbf.py                                   34      23  32.35%   53-59, 69-83, 102-108
parallel/reducedordermodel.py                    124      19  84.68%   143, 153, 162, 164, 194, 231, 246-268, 272-273
parallel/reduction.py                              8       0  100.00%
plugin/__init__.py                                 8       0  100.00%
plugin/aggregation.py                             95      79  16.84%   56-64, 79-85, 98-133, 147-166, 180-226, 242-303
plugin/automatic_shift.py                         75      59  21.33%   83, 94-184, 187-208, 214-238
plugin/database_splitter.py                       46      36  21.74%   49-64, 72-94, 146-150, 159-170
plugin/plugin.py                                  26       1  96.15%   108
plugin/scaler.py                                  73       8  89.04%   69-71, 87-89, 152, 203
plugin/shift.py                                   27       0  100.00%
reduction/__init__.py                              6       0  100.00%
reduction/ae.py                                   82       8  90.24%   63-68, 192, 203, 211-212, 226, 238
reduction/pod.py                                 103       6  94.17%   83-84, 118-120, 245
reduction/pod_ae.py                               22       0  100.00%
reduction/reduction.py                            12       0  100.00%
reduction/sklearn_reduction.py                    50       4  92.00%   66, 74, 144, 149
TOTAL                                           2259     972  56.97%

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions