Compare commits
4 Commits
Author | SHA1 | Date |
---|---|---|
|
7c14bddce3 | |
|
a502f839a1 | |
|
b71a36f214 | |
|
2856d50d00 |
|
@ -3,6 +3,9 @@
|
||||||
*.a
|
*.a
|
||||||
*.so
|
*.so
|
||||||
|
|
||||||
|
#test files
|
||||||
|
profile.cov
|
||||||
|
|
||||||
# Folders
|
# Folders
|
||||||
_obj
|
_obj
|
||||||
_test
|
_test
|
||||||
|
|
|
@ -0,0 +1,16 @@
|
||||||
|
all:
|
||||||
|
@echo
|
||||||
|
@echo the github branch in this repo has the davecgh\'s master branch
|
||||||
|
@echo
|
||||||
|
@echo this is an experiement by me to learn how go modules and versioning works
|
||||||
|
@echo go-spew is a great tool. thanks dave!
|
||||||
|
@echo
|
||||||
|
|
||||||
|
test:
|
||||||
|
go test -v -race -tags safe ./
|
||||||
|
go test -v -race -tags testcgo ./ -covermode=atomic -coverprofile=profile.cov
|
||||||
|
|
||||||
|
redomod:
|
||||||
|
rm -f go.*
|
||||||
|
GO111MODULE= go mod init
|
||||||
|
GO111MODULE= go mod tidy
|
|
@ -21,7 +21,7 @@ import (
|
||||||
"reflect"
|
"reflect"
|
||||||
"testing"
|
"testing"
|
||||||
|
|
||||||
"github.com/davecgh/go-spew/spew"
|
"go.wit.com/dev/davecgh/spew"
|
||||||
)
|
)
|
||||||
|
|
||||||
// custom type to test Stinger interface on non-pointer receiver.
|
// custom type to test Stinger interface on non-pointer receiver.
|
|
@ -67,7 +67,7 @@ import (
|
||||||
"testing"
|
"testing"
|
||||||
"unsafe"
|
"unsafe"
|
||||||
|
|
||||||
"github.com/davecgh/go-spew/spew"
|
"go.wit.com/dev/davecgh/spew"
|
||||||
)
|
)
|
||||||
|
|
||||||
// dumpTest is used to describe a test to be performed against the Dump method.
|
// dumpTest is used to describe a test to be performed against the Dump method.
|
|
@ -26,7 +26,7 @@ package spew_test
|
||||||
import (
|
import (
|
||||||
"fmt"
|
"fmt"
|
||||||
|
|
||||||
"github.com/davecgh/go-spew/spew/testdata"
|
"go.wit.com/dev/davecgh/spew/testdata"
|
||||||
)
|
)
|
||||||
|
|
||||||
func addCgoDumpTests() {
|
func addCgoDumpTests() {
|
|
@ -19,7 +19,7 @@ package spew_test
|
||||||
import (
|
import (
|
||||||
"fmt"
|
"fmt"
|
||||||
|
|
||||||
"github.com/davecgh/go-spew/spew"
|
"go.wit.com/dev/davecgh/spew"
|
||||||
)
|
)
|
||||||
|
|
||||||
type Flag int
|
type Flag int
|
|
@ -72,7 +72,7 @@ import (
|
||||||
"testing"
|
"testing"
|
||||||
"unsafe"
|
"unsafe"
|
||||||
|
|
||||||
"github.com/davecgh/go-spew/spew"
|
"go.wit.com/dev/davecgh/spew"
|
||||||
)
|
)
|
||||||
|
|
||||||
// formatterTest is used to describe a test to be performed against NewFormatter.
|
// formatterTest is used to describe a test to be performed against NewFormatter.
|
|
@ -23,7 +23,7 @@ import (
|
||||||
"os"
|
"os"
|
||||||
"testing"
|
"testing"
|
||||||
|
|
||||||
"github.com/davecgh/go-spew/spew"
|
"go.wit.com/dev/davecgh/spew"
|
||||||
)
|
)
|
||||||
|
|
||||||
// spewFunc is used to identify which public function of the spew package or
|
// spewFunc is used to identify which public function of the spew package or
|
Loading…
Reference in New Issue