Skip to content

Commit

Permalink
Add unit tests
Browse files Browse the repository at this point in the history
  • Loading branch information
ardaguclu committed Dec 29, 2019
1 parent 79f6695 commit 6cade75
Show file tree
Hide file tree
Showing 4 changed files with 17 additions and 1 deletion.
3 changes: 3 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -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)


13 changes: 13 additions & 0 deletions analysis/analysis_test.go
Original file line number Diff line number Diff line change
@@ -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)
}
Binary file added assets/readme.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
2 changes: 1 addition & 1 deletion go.mod
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 6cade75

Please sign in to comment.