MCPcopy
hub / github.com/google/go-cmp / verbosity

Method verbosity

cmp/report_compare.go:69–78  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

67 return opts
68}
69func (opts formatOptions) verbosity() uint {
70 switch {
71 case opts.VerbosityLevel < 0:
72 return 0
73 case opts.VerbosityLevel > 16:
74 return 16 // some reasonable maximum to avoid shift overflow
75 default:
76 return uint(opts.VerbosityLevel)
77 }
78}
79
80const maxVerbosityPreset = 6
81

Callers 6

formatDiffSliceMethod · 0.95
FormatDiffMethod · 0.95
formatDiffListMethod · 0.95
FormatValueMethod · 0.95
formatStringMethod · 0.95
verbosityPresetFunction · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected