Compare commits

...

4 Commits

Author SHA1 Message Date
Jeff Carr 7c14bddce3 make test
Signed-off-by: Jeff Carr <jcarr@wit.com>
2024-01-14 12:58:17 -06:00
Jeff Carr a502f839a1 flatten paths
Signed-off-by: Jeff Carr <jcarr@wit.com>
2024-01-14 12:21:06 -06:00
Jeff Carr b71a36f214 add comments
Signed-off-by: Jeff Carr <jcarr@wit.com>
2024-01-14 12:03:26 -06:00
Jeff Carr 2856d50d00 clean go mod
Signed-off-by: Jeff Carr <jcarr@wit.com>
2024-01-14 11:49:34 -06:00
21 changed files with 28 additions and 6 deletions

3
.gitignore vendored
View File

@ -3,6 +3,9 @@
*.a
*.so
#test files
profile.cov
# Folders
_obj
_test

16
Makefile Normal file
View File

@ -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

View File

@ -21,7 +21,7 @@ import (
"reflect"
"testing"
"github.com/davecgh/go-spew/spew"
"go.wit.com/dev/davecgh/spew"
)
// custom type to test Stinger interface on non-pointer receiver.

View File

View File

@ -67,7 +67,7 @@ import (
"testing"
"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.

View File

@ -26,7 +26,7 @@ package spew_test
import (
"fmt"
"github.com/davecgh/go-spew/spew/testdata"
"go.wit.com/dev/davecgh/spew/testdata"
)
func addCgoDumpTests() {

View File

@ -19,7 +19,7 @@ package spew_test
import (
"fmt"
"github.com/davecgh/go-spew/spew"
"go.wit.com/dev/davecgh/spew"
)
type Flag int

View File

@ -72,7 +72,7 @@ import (
"testing"
"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.

3
go.mod Normal file
View File

@ -0,0 +1,3 @@
module go.wit.com/dev/davecgh/spew
go 1.21.4

View File

@ -23,7 +23,7 @@ import (
"os"
"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