numInvertedIndexEntries implements the JSON interface.
()
| 730 | |
| 731 | // numInvertedIndexEntries implements the JSON interface. |
| 732 | func (j *jsonEncoded) numInvertedIndexEntries() (int, error) { |
| 733 | if j.isScalar() || j.containerLen == 0 { |
| 734 | return 1, nil |
| 735 | } |
| 736 | decoded, err := j.decode() |
| 737 | if err != nil { |
| 738 | return 0, err |
| 739 | } |
| 740 | return decoded.numInvertedIndexEntries() |
| 741 | } |
| 742 | |
| 743 | func (j *jsonEncoded) allPaths() ([]JSON, error) { |
| 744 | decoded, err := j.decode() |
nothing calls this directly
no test coverage detected