Skip to content

Commit

Permalink
Merge pull request #51 from monsterroster/feature/make-go-module
Browse files Browse the repository at this point in the history
Make Go module
  • Loading branch information
rokob authored Feb 20, 2019
2 parents d450a93 + 08344dd commit 8802370
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
1 change: 1 addition & 0 deletions go.mod
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
module github.com/rollbar/rollbar-go
5 changes: 3 additions & 2 deletions stack_test.go
Original file line number Diff line number Diff line change
@@ -1,18 +1,19 @@
package rollbar

import (
"strings"
"testing"
)

func TestBuildStack(t *testing.T) {
frame := BuildStack(1)[0]
if frame.Filename != "github.com/rollbar/rollbar-go/stack_test.go" {
if !strings.HasSuffix(frame.Filename,"rollbar-go/stack_test.go") {
t.Errorf("got: %s", frame.Filename)
}
if frame.Method != "rollbar-go.TestBuildStack" {
t.Errorf("got: %s", frame.Method)
}
if frame.Line != 8 {
if frame.Line != 9 {
t.Errorf("got: %d", frame.Line)
}
}
Expand Down

0 comments on commit 8802370

Please sign in to comment.