We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent f686c05 commit c23285bCopy full SHA for c23285b
defaults_test.go
@@ -88,3 +88,10 @@ func (self *DefaultsSuite) TestSetDefaultsWithValues(c *C) {
88
c.Assert(foo.String, Equals, "bar")
89
c.Assert(string(foo.Bytes), Equals, "foo")
90
}
91
+
92
+func (self *DefaultsSuite) BenchmarkLogic(c *C) {
93
+ for i := 0; i < c.N; i++ {
94
+ foo := &ExampleBasic{}
95
+ SetDefaults(foo)
96
+ }
97
+}
0 commit comments