diff options
| author | David Hill <[email protected]> | 2016-08-16 13:40:47 -0400 |
|---|---|---|
| committer | Dave Collins <[email protected]> | 2016-08-16 12:40:47 -0500 |
| commit | 6cf5744a041a0022271cefed95ba843f6d87fd51 (patch) | |
| tree | 5a818f151162173579906d64d700a272371348da | |
| parent | f438166ffde15a10d22290ae58d5e994ff4e6cd1 (diff) | |
Update Travis to test multiple golang versions.v1.0.0
| -rw-r--r-- | .travis.yml | 7 | ||||
| -rw-r--r-- | spew/dumpcgo_test.go | 3 |
2 files changed, 7 insertions, 3 deletions
diff --git a/.travis.yml b/.travis.yml index 10f469a..0bf43fc 100644 --- a/.travis.yml +++ b/.travis.yml @@ -1,7 +1,10 @@ language: go -go: 1.2 +go: + - 1.5.4 + - 1.6.3 + - 1.7 install: - - go get -v code.google.com/p/go.tools/cmd/cover + - go get -v golang.org/x/tools/cmd/cover script: - go test -v -tags=disableunsafe ./spew - go test -v -tags=testcgo ./spew -covermode=count -coverprofile=profile.cov diff --git a/spew/dumpcgo_test.go b/spew/dumpcgo_test.go index 18a3835..ed3e3c3 100644 --- a/spew/dumpcgo_test.go +++ b/spew/dumpcgo_test.go @@ -59,10 +59,11 @@ func addCgoDumpTests() { v3Len := fmt.Sprintf("%d", v3l) v3Cap := fmt.Sprintf("%d", v3c) v3t := "[6]testdata._Ctype_unsignedchar" + v3t2 := "[6]testdata._Ctype_uchar" v3s := "(len=" + v3Len + " cap=" + v3Cap + ") " + "{\n 00000000 74 65 73 74 33 00 " + " |test3.|\n}" - addDumpTest(v3, "("+v3t+") "+v3s+"\n") + addDumpTest(v3, "("+v3t+") "+v3s+"\n", "("+v3t2+") "+v3s+"\n") // C signed char array. v4, v4l, v4c := testdata.GetCgoSignedCharArray() |
