mirror of https://github.com/rwxrob/dot
You cannot select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
7 lines
313 B
Bash
7 lines
313 B
Bash
#!/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*
|