Skip to content
This repository has been archived by the owner on Oct 21, 2023. It is now read-only.

Commit

Permalink
test: added test
Browse files Browse the repository at this point in the history
  • Loading branch information
dtomasi committed Sep 6, 2021
1 parent 9b5d0f0 commit 575bb91
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions context_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -16,3 +16,8 @@ func TestGetContainerFromContext(t *testing.T) {
assert.IsType(t, &di.Container{}, ctxContainer)
assert.Equal(t, c, ctxContainer)
}

func TestGetContainerFromContext_Error(t *testing.T) {
_, err := di.GetContainerFromContext(context.Background())
assert.Error(t, err)
}

0 comments on commit 575bb91

Please # to comment.