From c14c50a6a0c74a53cb4f18d76e261c5d34f3a957 Mon Sep 17 00:00:00 2001 From: kortschak Date: Fri, 20 Mar 2015 12:35:05 +1030 Subject: [PATCH] Remove test coverage report and update README.md Test coverage is easily obtained by: go tool cover -func=count.out go test -covermode=count -coverprofile=count.out Currently: github.com/kortschak/utter/common.go:64: init 81.8% github.com/kortschak/utter/common.go:105: unsafeReflectValue 80.0% github.com/kortschak/utter/common.go:164: printBool 100.0% github.com/kortschak/utter/common.go:173: printInt 100.0% github.com/kortschak/utter/common.go:178: printUint 100.0% github.com/kortschak/utter/common.go:184: printFloat 100.0% github.com/kortschak/utter/common.go:190: printComplex 100.0% github.com/kortschak/utter/common.go:203: hexDump 85.7% github.com/kortschak/utter/common.go:241: printHexPtr 100.0% github.com/kortschak/utter/common.go:281: Len 100.0% github.com/kortschak/utter/common.go:287: Swap 100.0% github.com/kortschak/utter/common.go:294: valueSortLess 100.0% github.com/kortschak/utter/common.go:325: Less 100.0% github.com/kortschak/utter/common.go:332: sortValues 100.0% github.com/kortschak/utter/config.go:66: Fdump 100.0% github.com/kortschak/utter/config.go:88: Dump 100.0% github.com/kortschak/utter/config.go:94: Sdump 100.0% github.com/kortschak/utter/config.go:106: NewDefaultConfig 100.0% github.com/kortschak/utter/dump.go:62: indent 100.0% github.com/kortschak/utter/dump.go:73: unpackValue 100.0% github.com/kortschak/utter/dump.go:81: dumpPtr 100.0% github.com/kortschak/utter/dump.go:148: dumpSlice 73.5% github.com/kortschak/utter/dump.go:228: dump 100.0% github.com/kortschak/utter/dump.go:382: fdump 100.0% github.com/kortschak/utter/dump.go:400: Fdump 100.0% github.com/kortschak/utter/dump.go:406: Sdump 100.0% github.com/kortschak/utter/dump.go:430: Dump 100.0% total: (statements) 93.9% --- README.md | 2 +- cov_report.sh | 22 ----------------- test_coverage.txt | 61 ----------------------------------------------- 3 files changed, 1 insertion(+), 84 deletions(-) delete mode 100644 cov_report.sh delete mode 100644 test_coverage.txt diff --git a/README.md b/README.md index df24e3d..6e3fa98 100644 --- a/README.md +++ b/README.md @@ -12,7 +12,7 @@ pseudo-code representations of pointer-based structures will require subsequent processing. utter implements a deep pretty printer for Go data structures to aid in -snapshot creation. A comprehensive suite of tests with 100% test coverage is provided +snapshot creation. A comprehensive suite of tests with near 100% test coverage is provided to ensure proper functionality. utter is licensed under the liberal ISC license, so it may be used in open source or commercial projects. diff --git a/cov_report.sh b/cov_report.sh deleted file mode 100644 index ab230e1..0000000 --- a/cov_report.sh +++ /dev/null @@ -1,22 +0,0 @@ -#!/bin/sh - -# This script uses gocov to generate a test coverage report. -# The gocov tool my be obtained with the following command: -# go get github.com/axw/gocov/gocov -# -# It will be installed to $GOPATH/bin, so ensure that location is in your $PATH. - -# Check for gocov. -if ! type gocov >/dev/null 2>&1; then - echo >&2 "This script requires the gocov tool." - echo >&2 "You may obtain it with the following command:" - echo >&2 "go get github.com/axw/gocov/gocov" - exit 1 -fi - -# Only run the cgo tests if gcc is installed. -if type gcc >/dev/null 2>&1; then - (gocov test -tags testcgo | gocov report) -else - (gocov test | gocov report) -fi diff --git a/test_coverage.txt b/test_coverage.txt deleted file mode 100644 index 2cd087a..0000000 --- a/test_coverage.txt +++ /dev/null @@ -1,61 +0,0 @@ - -github.com/davecgh/go-spew/spew/dump.go dumpState.dump 100.00% (88/88) -github.com/davecgh/go-spew/spew/format.go formatState.format 100.00% (82/82) -github.com/davecgh/go-spew/spew/format.go formatState.formatPtr 100.00% (52/52) -github.com/davecgh/go-spew/spew/dump.go dumpState.dumpPtr 100.00% (44/44) -github.com/davecgh/go-spew/spew/dump.go dumpState.dumpSlice 100.00% (39/39) -github.com/davecgh/go-spew/spew/common.go handleMethods 100.00% (30/30) -github.com/davecgh/go-spew/spew/common.go printHexPtr 100.00% (18/18) -github.com/davecgh/go-spew/spew/common.go unsafeReflectValue 100.00% (13/13) -github.com/davecgh/go-spew/spew/format.go formatState.constructOrigFormat 100.00% (12/12) -github.com/davecgh/go-spew/spew/dump.go fdump 100.00% (11/11) -github.com/davecgh/go-spew/spew/format.go formatState.Format 100.00% (11/11) -github.com/davecgh/go-spew/spew/common.go init 100.00% (10/10) -github.com/davecgh/go-spew/spew/common.go printComplex 100.00% (9/9) -github.com/davecgh/go-spew/spew/common.go valuesSorter.Less 100.00% (8/8) -github.com/davecgh/go-spew/spew/format.go formatState.buildDefaultFormat 100.00% (7/7) -github.com/davecgh/go-spew/spew/format.go formatState.unpackValue 100.00% (5/5) -github.com/davecgh/go-spew/spew/dump.go dumpState.indent 100.00% (4/4) -github.com/davecgh/go-spew/spew/common.go catchPanic 100.00% (4/4) -github.com/davecgh/go-spew/spew/config.go ConfigState.convertArgs 100.00% (4/4) -github.com/davecgh/go-spew/spew/spew.go convertArgs 100.00% (4/4) -github.com/davecgh/go-spew/spew/format.go newFormatter 100.00% (3/3) -github.com/davecgh/go-spew/spew/dump.go Sdump 100.00% (3/3) -github.com/davecgh/go-spew/spew/common.go printBool 100.00% (3/3) -github.com/davecgh/go-spew/spew/common.go sortValues 100.00% (3/3) -github.com/davecgh/go-spew/spew/config.go ConfigState.Sdump 100.00% (3/3) -github.com/davecgh/go-spew/spew/dump.go dumpState.unpackValue 100.00% (3/3) -github.com/davecgh/go-spew/spew/spew.go Printf 100.00% (1/1) -github.com/davecgh/go-spew/spew/spew.go Println 100.00% (1/1) -github.com/davecgh/go-spew/spew/spew.go Sprint 100.00% (1/1) -github.com/davecgh/go-spew/spew/spew.go Sprintf 100.00% (1/1) -github.com/davecgh/go-spew/spew/spew.go Sprintln 100.00% (1/1) -github.com/davecgh/go-spew/spew/common.go printFloat 100.00% (1/1) -github.com/davecgh/go-spew/spew/config.go NewDefaultConfig 100.00% (1/1) -github.com/davecgh/go-spew/spew/common.go printInt 100.00% (1/1) -github.com/davecgh/go-spew/spew/common.go printUint 100.00% (1/1) -github.com/davecgh/go-spew/spew/common.go valuesSorter.Len 100.00% (1/1) -github.com/davecgh/go-spew/spew/common.go valuesSorter.Swap 100.00% (1/1) -github.com/davecgh/go-spew/spew/config.go ConfigState.Errorf 100.00% (1/1) -github.com/davecgh/go-spew/spew/config.go ConfigState.Fprint 100.00% (1/1) -github.com/davecgh/go-spew/spew/config.go ConfigState.Fprintf 100.00% (1/1) -github.com/davecgh/go-spew/spew/config.go ConfigState.Fprintln 100.00% (1/1) -github.com/davecgh/go-spew/spew/config.go ConfigState.Print 100.00% (1/1) -github.com/davecgh/go-spew/spew/config.go ConfigState.Printf 100.00% (1/1) -github.com/davecgh/go-spew/spew/config.go ConfigState.Println 100.00% (1/1) -github.com/davecgh/go-spew/spew/config.go ConfigState.Sprint 100.00% (1/1) -github.com/davecgh/go-spew/spew/config.go ConfigState.Sprintf 100.00% (1/1) -github.com/davecgh/go-spew/spew/config.go ConfigState.Sprintln 100.00% (1/1) -github.com/davecgh/go-spew/spew/config.go ConfigState.NewFormatter 100.00% (1/1) -github.com/davecgh/go-spew/spew/config.go ConfigState.Fdump 100.00% (1/1) -github.com/davecgh/go-spew/spew/config.go ConfigState.Dump 100.00% (1/1) -github.com/davecgh/go-spew/spew/dump.go Fdump 100.00% (1/1) -github.com/davecgh/go-spew/spew/dump.go Dump 100.00% (1/1) -github.com/davecgh/go-spew/spew/spew.go Fprintln 100.00% (1/1) -github.com/davecgh/go-spew/spew/format.go NewFormatter 100.00% (1/1) -github.com/davecgh/go-spew/spew/spew.go Errorf 100.00% (1/1) -github.com/davecgh/go-spew/spew/spew.go Fprint 100.00% (1/1) -github.com/davecgh/go-spew/spew/spew.go Fprintf 100.00% (1/1) -github.com/davecgh/go-spew/spew/spew.go Print 100.00% (1/1) -github.com/davecgh/go-spew/spew ------------------------------- 100.00% (505/505) -