MCPcopy
hub / github.com/github/git-sizer / Footnote

Method Footnote

sizes/output.go:157–171  ·  view source on GitHub ↗
(nameStyle NameStyle)

Source from the content-addressed store, hash-verified

155}
156
157func (i *item) Footnote(nameStyle NameStyle) string {
158 if i.path == nil || i.path.OID == git.NullOID {
159 return ""
160 }
161 switch nameStyle {
162 case NameStyleNone:
163 return ""
164 case NameStyleHash:
165 return i.path.OID.String()
166 case NameStyleFull:
167 return i.path.String()
168 default:
169 panic("unexpected NameStyle")
170 }
171}
172
173// If this item's alert level is at least as high as the threshold,
174// return the string that should be used as its "level of concern" and

Callers 1

EmitMethod · 0.95

Calls 1

StringMethod · 0.45

Tested by

no test coverage detected