()
| 554 | } |
| 555 | |
| 556 | func (j *jsonEncoded) AsText() (*string, error) { |
| 557 | if dec := j.alreadyDecoded(); dec != nil { |
| 558 | return dec.AsText() |
| 559 | } |
| 560 | |
| 561 | decoded, err := j.decode() |
| 562 | if err != nil { |
| 563 | return nil, err |
| 564 | } |
| 565 | return decoded.AsText() |
| 566 | } |
| 567 | |
| 568 | func (j *jsonEncoded) Compare(other JSON) (int, error) { |
| 569 | if cmp := cmpJSONTypes(j.Type(), other.Type()); cmp != 0 { |
nothing calls this directly
no test coverage detected