Clone this wiki locally
This is an IRC bot for creating a coverage report of the Rakudo (and NQP) source lines that were hit while running the code you give it. The first option is the commit, the second (optional) option is the filter for what lines of the MoarVM-generated coverage log you want, the third is the code to run.
The output will be a table where the first column is links to the file/line(s) covered and the second is the code from that file/line(s).
You can find some extra examples in tests: coverable.t
⚠ Please note that the
grep= option takes a perl5 regex, not something else.
⚠ Only usable with rakudo versions starting from 2017.06
<MasterDuke> coverable6: HEAD say "hi"
<greppable6> MasterDuke, https://gist.github.com/4a4a6189e07675b53a4e747c046c5bb5
By default coverable will grep for
SETTING::, but you can provide your own pattern:
<MasterDuke> coverable6: 2017.06 grep=SETTING|Perl6 say "hi"
<greppable6> MasterDuke, https://gist.github.com/9fbca2dcf2e9e4f816fbc05069803283