Skip to content

Commit

Permalink
add unit test
Browse files Browse the repository at this point in the history
  • Loading branch information
semihbkgr committed Jun 10, 2023
1 parent 1d5e48a commit 293d581
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions tests/fctx_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -152,6 +152,12 @@ func TestWithMetaEmpty(t *testing.T) {
assert.Nil(t, data)
}

func TestWithMetaNilContext(t *testing.T) {
ctx := fctx.WithMeta(nil, "key", "value")

assert.Nil(t, ctx)
}

func TestWithMetaDifferentMapAddress(t *testing.T) {
ctx := context.Background()
err := errors.New("a problem")
Expand Down

0 comments on commit 293d581

Please sign in to comment.