MCPcopy
hub / github.com/uber-go/zap / fakeFields

Function fakeFields

benchmarks/zap_test.go:127–141  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

125}
126
127func fakeFields() []zap.Field {
128 return []zap.Field{
129 zap.Int("int", _tenInts[0]),
130 zap.Ints("ints", _tenInts),
131 zap.String("string", _tenStrings[0]),
132 zap.Strings("strings", _tenStrings),
133 zap.Time("time", _tenTimes[0]),
134 zap.Times("times", _tenTimes),
135 zap.Object("user1", _oneUser),
136 zap.Object("user2", _oneUser),
137 zap.Object("user3", nil),
138 zap.Array("users", _tenUsers),
139 zap.Error(errExample),
140 }
141}
142
143func fakeSugarFields() []interface{} {
144 return []interface{}{

Calls 9

IntFunction · 0.92
IntsFunction · 0.92
StringFunction · 0.92
StringsFunction · 0.92
TimeFunction · 0.92
TimesFunction · 0.92
ObjectFunction · 0.92
ArrayFunction · 0.92
ErrorFunction · 0.92

Tested by

no test coverage detected