()
| 191 | } |
| 192 | |
| 193 | func (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 | |
| 202 | func (p *Path) MarshalJSON() ([]byte, error) { |
| 203 | return json.Marshal(p.String()) |
no test coverage detected