mirror of
https://github.com/rwxrob/dot
synced 2024-11-18 15:25:52 +00:00
7 lines
313 B
Bash
Executable File
7 lines
313 B
Bash
Executable File
#!/usr/bin/env bash
|
|
go test -coverprofile=/tmp/cover
|
|
go tool cover -html=/tmp/cover -o /tmp/cover.html
|
|
perl -e 'local $/; open $fh,"<", $ARGV[0]; $buf=<$fh>; $buf=~s,<span\s+class="cov0"[^>]+>([^<]+)</span>,<b>\1</b>,gms; print $buf' /tmp/cover.html >/tmp/cover-lynx.html
|
|
lynx /tmp/cover-lynx.html
|
|
rm /tmp/cover*
|