|
|
|
@ -60,8 +60,8 @@ def _test():
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
@_target
|
|
|
|
|
def _gfmxr():
|
|
|
|
|
_run(['gfmxr', '-c', str(_gfmxr_count()), '-s', 'README.md'])
|
|
|
|
|
def _gfmrun():
|
|
|
|
|
_run(['gfmrun', '-c', str(_gfmrun_count()), '-s', 'README.md'])
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
@_target
|
|
|
|
@ -123,7 +123,7 @@ def _run(command):
|
|
|
|
|
check_call(command)
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
def _gfmxr_count():
|
|
|
|
|
def _gfmrun_count():
|
|
|
|
|
with open('README.md') as infile:
|
|
|
|
|
lines = infile.read().splitlines()
|
|
|
|
|
return len(filter(_is_go_runnable, lines))
|
|
|
|
|