Created
October 8, 2013 07:09
-
-
Save leafo/6880781 to your computer and use it in GitHub Desktop.
testing code coverage tool for moonscript
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
(master) ~/code/lua/moonscript > bin/moon -c test_cov.moon > /dev/null | |
Starting code coverage | |
Stopping code coverage | |
------| @test_cov.moon | |
1| | |
2| | |
* 3| hello = -> | |
* 4| x = 5 + 4 | |
* 5| print "hello", x | |
6| | |
7| | |
* 8| world = -> | |
9| print 1 | |
10| print 2 | |
11| print 3 | |
12| print 4 | |
13| | |
14| | |
* 15| hello! | |
* 16| require "cool" | |
17| | |
------| @./cool.moon | |
* 1| require "moon.all" | |
2| | |
* 3| t = defaultbl {[0]: 0, [1]: 1}, (i) => self[i - 1] + self[i - 2] | |
4| | |
* 5| for i=0,10 | |
* 6| print t[i] | |
7| | |
8| | |
------| @./moon/all.moon | |
1| -- install moon into global scope | |
* 2| moon = require "moon" | |
* 3| for k,v in pairs moon | |
* 4| _G[k] = v | |
5| moon | |
6| | |
7| |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment