MCPcopy Index your code
hub / github.com/github/git-sizer / String

Method String

sizes/path_resolver.go:193–200  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

191}
192
193func (p *Path) String() string {
194 path := p.Path()
195 if path == "" {
196 return p.OID.String()
197 } else {
198 return fmt.Sprintf("%s (%s)", p.OID, path)
199 }
200}
201
202func (p *Path) MarshalJSON() ([]byte, error) {
203 return json.Marshal(p.String())

Callers 3

MarshalJSONMethod · 0.95
TreePrefixMethod · 0.45
BestPathMethod · 0.45

Calls 1

PathMethod · 0.95

Tested by

no test coverage detected