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

Function TestStackSkipFieldWithSkip

field_test.go:287–293  ·  view source on GitHub ↗
(t *testing.T)

Source from the content-addressed store, hash-verified

285}
286
287func TestStackSkipFieldWithSkip(t *testing.T) {
288 f := StackSkip("stacktrace", 1)
289 assert.Equal(t, "stacktrace", f.Key, "Unexpected field key.")
290 assert.Equal(t, zapcore.StringType, f.Type, "Unexpected field type.")
291 assert.Equal(t, stacktrace.Take(1), f.String, "Unexpected stack trace")
292 assertCanBeReused(t, f)
293}
294
295func TestDict(t *testing.T) {
296 tests := []struct {

Callers

nothing calls this directly

Calls 3

TakeFunction · 0.92
StackSkipFunction · 0.85
assertCanBeReusedFunction · 0.70

Tested by

no test coverage detected