Skip to content

Commit

Permalink
chore: more tests
Browse files Browse the repository at this point in the history
  • Loading branch information
dtomasi committed Sep 19, 2021
1 parent 5e7b2e5 commit 5783b21
Show file tree
Hide file tree
Showing 2 changed files with 15 additions and 1 deletion.
4 changes: 3 additions & 1 deletion codecov.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,4 +3,6 @@ coverage:
round: up
range: "60...100"

ignore: []
ignore:
## No need to test functions that are just wrapped
- xerrors.go
12 changes: 12 additions & 0 deletions type_test.go
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
package zerrors_test

import (
z "github.com/dtomasi/zerrors"
"github.com/stretchr/testify/assert"
"testing"
)

func TestErrorType_String(t *testing.T) {
testType := z.ErrorType("foo")
assert.Equal(t, "foo", testType.String())
}

0 comments on commit 5783b21

Please sign in to comment.