diff --git a/README.md b/README.md index 9452ff4..c40d3cb 100644 --- a/README.md +++ b/README.md @@ -15,5 +15,8 @@ In order to make enhancements in terms of performance, Goesp sheds light on GC p `goesp {path_of_package.go}` +### Result + +![picture](assets/readme.png) diff --git a/analysis/analysis_test.go b/analysis/analysis_test.go new file mode 100644 index 0000000..2eca2fc --- /dev/null +++ b/analysis/analysis_test.go @@ -0,0 +1,13 @@ +package analysis + +import ( + "github.com/stretchr/testify/assert" + "testing" +) + +func TestNew(t *testing.T) { + a := New() + assert.NotNil(t, a.PathRgx) + assert.NotNil(t, a.StackRgx) + assert.NotNil(t, a.HeapRgx) +} diff --git a/assets/readme.png b/assets/readme.png new file mode 100644 index 0000000..515431a Binary files /dev/null and b/assets/readme.png differ diff --git a/go.mod b/go.mod index c228885..31c6092 100644 --- a/go.mod +++ b/go.mod @@ -7,7 +7,7 @@ require ( github.com/jedib0t/go-pretty v4.3.0+incompatible github.com/kr/pretty v0.1.0 // indirect github.com/mattn/go-runewidth v0.0.7 // indirect - github.com/stretchr/testify v1.4.0 // indirect + github.com/stretchr/testify v1.4.0 golang.org/x/sys v0.0.0-20191224085550-c709ea063b76 // indirect gopkg.in/check.v1 v1.0.0-20180628173108-788fd7840127 // indirect gopkg.in/yaml.v2 v2.2.4 // indirect