numInvertedIndexEntries implements the JSON interface.
()
| 716 | |
| 717 | // numInvertedIndexEntries implements the JSON interface. |
| 718 | func (j *jsonEncoded) numInvertedIndexEntries() (int, error) { |
| 719 | if j.isScalar() || j.containerLen == 0 { |
| 720 | return 1, nil |
| 721 | } |
| 722 | decoded, err := j.decode() |
| 723 | if err != nil { |
| 724 | return 0, err |
| 725 | } |
| 726 | return decoded.numInvertedIndexEntries() |
| 727 | } |
| 728 | |
| 729 | func (j *jsonEncoded) allPaths() ([]JSON, error) { |
| 730 | decoded, err := j.decode() |
nothing calls this directly
no test coverage detected