Skip to content

Commit

Permalink
addressing PR comments
Browse files Browse the repository at this point in the history
  • Loading branch information
pawelsz-rb committed Jun 17, 2022
1 parent 4adf0a2 commit 30168bc
Showing 1 changed file with 13 additions and 11 deletions.
24 changes: 13 additions & 11 deletions examples_test.go
Original file line number Diff line number Diff line change
@@ -1,65 +1,67 @@
package rollbar
package rollbar_test

import (
"errors"

"github.com/rollbar/rollbar-go"
)

func ExampleCritical_error() {
Critical(errors.New("bork"), map[string]interface{}{
rollbar.Critical(errors.New("bork"), map[string]interface{}{
"hello": "world",
})
}

func ExampleCritical_message() {
Critical("bork", map[string]interface{}{
rollbar.Critical("bork", map[string]interface{}{
"hello": "world",
})
}

func ExampleError_error() {
Error(errors.New("bork"), map[string]interface{}{
rollbar.Error(errors.New("bork"), map[string]interface{}{
"hello": "world",
})
}

func ExampleError_message() {
Error("bork", map[string]interface{}{
rollbar.Error("bork", map[string]interface{}{
"hello": "world",
})
}

func ExampleWarning_error() {
Warning(errors.New("bork"), map[string]interface{}{
rollbar.Warning(errors.New("bork"), map[string]interface{}{
"hello": "world",
})
}

func ExampleWarning_message() {
Warning("bork", map[string]interface{}{
rollbar.Warning("bork", map[string]interface{}{
"hello": "world",
})
}

func ExampleInfo_error() {
Info(errors.New("bork"), map[string]interface{}{
rollbar.Info(errors.New("bork"), map[string]interface{}{
"hello": "world",
})
}

func ExampleInfo_message() {
Info("bork", map[string]interface{}{
rollbar.Info("bork", map[string]interface{}{
"hello": "world",
})
}

func ExampleDebug_error() {
Debug(errors.New("bork"), map[string]interface{}{
rollbar.Debug(errors.New("bork"), map[string]interface{}{
"hello": "world",
})
}

func ExampleDebug_message() {
Debug("bork", map[string]interface{}{
rollbar.Debug("bork", map[string]interface{}{
"hello": "world",
})
}

0 comments on commit 30168bc

Please sign in to comment.