Skip to content

Commit

Permalink
Go fmt
Browse files Browse the repository at this point in the history
  • Loading branch information
Alexandr Samylkin committed Jun 1, 2017
1 parent 1c8e73d commit d7a7b4d
Showing 1 changed file with 10 additions and 10 deletions.
20 changes: 10 additions & 10 deletions param_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -21,16 +21,16 @@ func TestInvokeWithParams(t *testing.T) {

assert.NoError(c.Provide(func() *hero { return &hero{name: "superman"} }))
err := InvokeWithParams(
c,
func(h *hero, ct *cartoon) {
assert.Equal("superman", h.name)
assert.Equal("Snafuperman", ct.title)
},
Param{
Type: reflect.TypeOf(&cartoon{}),
Optional: true,
Value: &cartoon{title: "Snafuperman"},
})
c,
func(h *hero, ct *cartoon) {
assert.Equal("superman", h.name)
assert.Equal("Snafuperman", ct.title)
},
Param{
Type: reflect.TypeOf(&cartoon{}),
Optional: true,
Value: &cartoon{title: "Snafuperman"},
})

assert.NoError(err)
}

0 comments on commit d7a7b4d

Please sign in to comment.