google / qhbm-library

Quantum Hamiltonian-Based Models built on TensorFlow Quantum
https://qhbm-library.readthedocs.io/en/latest/
Apache License 2.0
41 stars 15 forks source link

Boost test coverage #57

Open zaqqwerty opened 3 years ago

zaqqwerty commented 3 years ago

We want to be above 90% coverage on every module before launch (with meaningful tests!). Here is a list of modules and their current mainline coverage:

Name                       Stmts   Miss Branch BrPart  Cover
----------------------------------------------------------------------
qhbmlib/architectures.py     258    150     92      0    40%
qhbmlib/ebm.py               358    265     38      1    24%
qhbmlib/hamiltonian.py        68     18     42      0    73%
qhbmlib/qhbm_base.py         149     74     12      1    51% 
qhbmlib/qmhl.py               38     28      0      0    26%
qhbmlib/qnn.py                82      4     34      0    97%
qhbmlib/util.py              124     86      0      0    31%
qhbmlib/vqt.py                83     66      0      0    20%
----------------------------------------------------------------------
TOTAL                       1161    691    218      2    42%