l3nz / cli-matic

Compact, hands-free [sub]command line parsing library for Clojure.
Eclipse Public License 2.0
361 stars 29 forks source link

Improve code coverage #78

Closed l3nz closed 4 years ago

l3nz commented 4 years ago

version

0.3.8

platform

JVM

problem

Test coverage can be improved.

repro

lein cloverage

|----------------------------+---------+---------|
|                  Namespace | % Forms | % Lines |
|----------------------------+---------+---------|
|             cli-matic.core |   89.27 |   90.42 |
|         cli-matic.help-gen |   59.54 |   43.43 |
|        cli-matic.optionals |   94.19 |  100.00 |
|         cli-matic.platform |   79.41 |   80.95 |
|  cli-matic.platform-macros |  100.00 |  100.00 |
|          cli-matic.presets |   99.28 |  100.00 |
|            cli-matic.specs |   85.92 |  100.00 |
|            cli-matic.utils |   97.06 |   96.48 |
| cli-matic.utils-candidates |   99.68 |  100.00 |
|----------------------------+---------+---------|
|                  ALL FILES |   87.70 |   87.85 |
|----------------------------+---------+---------|

expected behavior

We can definitely do better, especially in cli-matic.help-gen.

l3nz commented 4 years ago

Now

ALL FILES | Forms: 93.09 | Lines: 95.75