EstimateFactCount implements a FactStore method. The result is an overestimate, because facts may be stored multiple times.
()
| 257 | // EstimateFactCount implements a FactStore method. The result |
| 258 | // is an overestimate, because facts may be stored multiple times. |
| 259 | func (s MergedStore) EstimateFactCount() int { |
| 260 | var estimatedTotal int |
| 261 | for _, store := range s.readStore { |
| 262 | estimatedTotal += store.EstimateFactCount() |
| 263 | } |
| 264 | return estimatedTotal + s.writeStore.EstimateFactCount() |
| 265 | } |
| 266 | |
| 267 | // ListPredicates returns a merged list of predicates. |
| 268 | func (s MergedStore) ListPredicates() []ast.PredicateSym { |
nothing calls this directly
no test coverage detected