()
| 540 | } |
| 541 | |
| 542 | func (j *jsonEncoded) AsText() (*string, error) { |
| 543 | if dec := j.alreadyDecoded(); dec != nil { |
| 544 | return dec.AsText() |
| 545 | } |
| 546 | |
| 547 | decoded, err := j.decode() |
| 548 | if err != nil { |
| 549 | return nil, err |
| 550 | } |
| 551 | return decoded.AsText() |
| 552 | } |
| 553 | |
| 554 | func (j *jsonEncoded) Compare(other JSON) (int, error) { |
| 555 | if cmp := cmpJSONTypes(j.Type(), other.Type()); cmp != 0 { |
nothing calls this directly
no test coverage detected