VerifyPack checks that the Pack should not be nil if the postings exist.
(plist *pb.PostingList)
| 38 | |
| 39 | // VerifyPack checks that the Pack should not be nil if the postings exist. |
| 40 | func VerifyPack(plist *pb.PostingList) { |
| 41 | if plist.Pack == nil && len(plist.Postings) > 0 { |
| 42 | log.Panic("UID Pack verification failed: Pack is nil for posting list: %+v", plist) |
| 43 | } |
| 44 | } |
| 45 | |
| 46 | // VerifySnapshot iterates over all the keys in badger. For all data keys it checks |
| 47 | // if key is a split key and it verifies if all part are present in badger as well. |
no test coverage detected