()
| 803 | } |
| 804 | |
| 805 | func (j jsonObject) numInvertedIndexEntries() (int, error) { |
| 806 | if len(j) == 0 { |
| 807 | return 1, nil |
| 808 | } |
| 809 | count := 0 |
| 810 | for _, kv := range j { |
| 811 | n, err := kv.v.numInvertedIndexEntries() |
| 812 | if err != nil { |
| 813 | return 0, err |
| 814 | } |
| 815 | count += n |
| 816 | } |
| 817 | return count, nil |
| 818 | } |
| 819 | |
| 820 | // AllPaths returns a slice of new JSON documents, each a path to a leaf |
| 821 | // through the input. Note that leaves include the empty object and array |
nothing calls this directly
no test coverage detected