JSAbrahams / mamba

🐍 The Mamba programming language, because we care about safety
MIT License
90 stars 4 forks source link

Wrap pipeline #33

Closed JSAbrahams closed 5 years ago

JSAbrahams commented 5 years ago

Relevant issues

Implements #17. Should also make it easier to test outputted python files, as stated in #32. A next step would also be to finally create a command line interface.

Summary

Wraps the pipeline, and allows us to specify mamba files which should be converted to python files. We can:

In future, we should extend this functionality so we can recursively iterate over a directory, and output each file elsewhere. The directory structure of the output should then mirror the directory structure of the input.

Added Tests

Tests added to check that reading and writing files work and that the pipeline behaves.

Additional Context

...

codecov[bot] commented 5 years ago

Codecov Report

Merging #33 into master will increase coverage by 0.04%. The diff coverage is 80.95%.

Impacted file tree graph

@@            Coverage Diff             @@
##           master      #33      +/-   ##
==========================================
+ Coverage   62.56%   62.61%   +0.04%     
==========================================
  Files          26       26              
  Lines        2022     2014       -8     
==========================================
- Hits         1265     1261       -4     
+ Misses        757      753       -4
Impacted Files Coverage Ξ”
src/lib.rs 0% <0%> (ΓΈ) :arrow_up:
tests/util.rs 100% <100%> (+11.11%) :arrow_up:
tests/smoke.rs 87.5% <50%> (ΓΈ) :arrow_up:
src/core/mod.rs 51.87% <68.75%> (+0.4%) :arrow_up:
tests/parser.rs 97.95% <92.3%> (ΓΈ) :arrow_up:

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 980af5a...05beab3. Read the comment docs.