()
| 879 | } |
| 880 | |
| 881 | func (j jsonObject) numInvertedIndexEntries() (int, error) { |
| 882 | if len(j) == 0 { |
| 883 | return 1, nil |
| 884 | } |
| 885 | count := 0 |
| 886 | for _, kv := range j { |
| 887 | n, err := kv.v.numInvertedIndexEntries() |
| 888 | if err != nil { |
| 889 | return 0, err |
| 890 | } |
| 891 | count += n |
| 892 | } |
| 893 | return count, nil |
| 894 | } |
| 895 | |
| 896 | // AllPaths returns a slice of new JSON documents, each a path to a leaf |
| 897 | // through the input. Note that leaves include the empty object and array |
nothing calls this directly
no test coverage detected