Skip to content

Commit

Permalink
benchmark
Browse files Browse the repository at this point in the history
  • Loading branch information
mcuadros committed Jan 14, 2014
1 parent f686c05 commit c23285b
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions defaults_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -88,3 +88,10 @@ func (self *DefaultsSuite) TestSetDefaultsWithValues(c *C) {
c.Assert(foo.String, Equals, "bar")
c.Assert(string(foo.Bytes), Equals, "foo")
}

func (self *DefaultsSuite) BenchmarkLogic(c *C) {
for i := 0; i < c.N; i++ {
foo := &ExampleBasic{}
SetDefaults(foo)
}
}

0 comments on commit c23285b

Please sign in to comment.