Skip to content

Commit

Permalink
fix(initializer): complete unit test
Browse files Browse the repository at this point in the history
  • Loading branch information
saitofun committed May 20, 2024
1 parent dc621db commit a9c9b0b
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions initializer/initializer_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -41,12 +41,14 @@ func TestInit(t *testing.T) {
errInitializerWithError,
nil,
errInitializerByContextWithError,
nil,
}
for i, v := range []any{
&Initializer{},
&InitializerWithError{},
&InitializerByContext{},
&InitializerByContextWithError{},
&struct{}{},
} {
if results[i] == nil {
NewWithT(t).Expect(initializer.Init(v)).To(BeNil())
Expand Down

0 comments on commit a9c9b0b

Please sign in to comment.