MozillaSecurity / lithium

Line-based testcase reducer
Mozilla Public License 2.0
95 stars 25 forks source link

Fix #32 - Reorganize Lithium subdirectories. #49

Closed nth10sd closed 7 years ago

nth10sd commented 7 years ago

This also supersedes #28 and helps out part of #36. All the details are at #32.

Again, pip install and pip install -e both work properly, but I feel we might want to have tests for these 2 usages later as in #36, as it was easy during development to break things.

We should release 0.1.0 before landing this, due to the directory changes.

codecov-io commented 7 years ago

Codecov Report

Merging #49 into master will increase coverage by 3.8%. The diff coverage is 34.84%.

Impacted file tree graph

@@           Coverage Diff            @@
##           master     #49     +/-   ##
========================================
+ Coverage   69.89%   73.7%   +3.8%     
========================================
  Files          15      13      -2     
  Lines        1561    1559      -2     
========================================
+ Hits         1091    1149     +58     
+ Misses        470     410     -60
Impacted Files Coverage Δ
setup.py 0% <ø> (ø) :arrow_up:
src/lithium/interestingness/__init__.py 100% <100%> (ø)
src/lithium/__init__.py 100% <100%> (ø)
src/lithium/reducer.py 80.8% <100%> (ø)
tests/test_lithium.py 95.35% <100%> (ø)
...ithium/docs/examples/arithmetic/product_divides.py 100% <100%> (ø)
src/lithium/interestingness/timed_run.py 14.56% <17.39%> (ø)
src/lithium/interestingness/diff_test.py 21.87% <23.52%> (ø)
src/lithium/interestingness/range.py 27.27% <27.27%> (ø)
src/lithium/interestingness/utils.py 27.65% <27.65%> (ø)
... and 8 more

Continue to review full report at Codecov.

Legend - Click here to learn more Δ = absolute <relative> (impact), ø = not affected, ? = missing data Powered by Codecov. Last update 448e733...adb1287. Read the comment docs.

nth10sd commented 7 years ago

Changes:

nth10sd commented 7 years ago

I still needed to import lithium.interestingness.crashes in __init__.py otherwise the interestingness tests could not be found via import lithium; dir(lithium.interestingness.crashes) later when lithium is installed as a package.