Skip to content

Commit

Permalink
#57 Fixed testcases
Browse files Browse the repository at this point in the history
  • Loading branch information
docktermj committed Apr 19, 2024
1 parent cf14f75 commit 9f61e42
Show file tree
Hide file tree
Showing 3 changed files with 0 additions and 49 deletions.
18 changes: 0 additions & 18 deletions explainer/explainer_error_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -21,21 +21,3 @@ func TestExplainerError(test *testing.T) {
err := testObject.Explain(ctx)
assert.Nil(test, err)
}

// ----------------------------------------------------------------------------
// Examples for godoc documentation
// ----------------------------------------------------------------------------

func ExampleExplainerError() {
// For more information, visit https://github.com/senzing-garage/explain/blob/main/explainer/explainer_error_test.go
ctx := context.TODO()
explainer := &explainer.ExplainerError{
ErrorId: "senzing-60010000",
TtyOnly: true,
}
err := explainer.Explain(ctx)
if err != nil {
panic(err)
}
//Output: For information on that error, visit https://hub.senzing.com/g2-sdk-go-base/errors#senzing-60010000
}
18 changes: 0 additions & 18 deletions explainer/explainer_null_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -21,21 +21,3 @@ func TestExplainerNull(test *testing.T) {
err := testObject.Explain(ctx)
assert.Nil(test, err)
}

// ----------------------------------------------------------------------------
// Examples for godoc documentation
// ----------------------------------------------------------------------------

func ExampleExplainerNull() {
// For more information, visit https://github.com/senzing-garage/explain/blob/main/explainer/explainer_error_test.go
ctx := context.TODO()
explainer := &explainer.ExplainerError{
ErrorId: "senzing-60010000",
TtyOnly: true,
}
err := explainer.Explain(ctx)
if err != nil {
panic(err)
}
//Output: For information on that error, visit https://hub.senzing.com/g2-sdk-go-base/errors#senzing-60010000
}
13 changes: 0 additions & 13 deletions explainer/explainer_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -4,21 +4,8 @@ import (
"fmt"
"os"
"testing"

"github.com/stretchr/testify/assert"
)

// ----------------------------------------------------------------------------
// Internal functions
// ----------------------------------------------------------------------------

func testError(test *testing.T, err error) {
if err != nil {
test.Log("Error:", err.Error())
assert.FailNow(test, err.Error())
}
}

// ----------------------------------------------------------------------------
// Test harness
// ----------------------------------------------------------------------------
Expand Down

0 comments on commit 9f61e42

Please sign in to comment.