Skip to content

Instantly share code, notes, and snippets.

@mattyw
Last active January 7, 2016 11:09
Show Gist options
  • Select an option

  • Save mattyw/4ce1de90e706626721cf to your computer and use it in GitHub Desktop.

Select an option

Save mattyw/4ce1de90e706626721cf to your computer and use it in GitHub Desktop.

Revisions

  1. mattyw revised this gist Jan 7, 2016. 1 changed file with 1 addition and 1 deletion.
    2 changes: 1 addition & 1 deletion gocover
    Original file line number Diff line number Diff line change
    @@ -1,5 +1,5 @@
    #!/bin/sh
    file=`mktemp`
    echo $file
    go test -coverprofile=$file
    go test -coverprofile=$file $@
    go tool cover -html=$file
  2. mattyw created this gist Nov 16, 2015.
    5 changes: 5 additions & 0 deletions gocover
    Original file line number Diff line number Diff line change
    @@ -0,0 +1,5 @@
    #!/bin/sh
    file=`mktemp`
    echo $file
    go test -coverprofile=$file
    go tool cover -html=$file