MCPcopy Index your code
hub / github.com/mozilla/cipherscan / result_iterator

Function result_iterator

cscan.py:113–120  ·  view source on GitHub ↗

Selecting iterator over cached results. Looks for matching result from already performed scans

(predicate)

Source from the content-addressed store, hash-verified

111 results = {}
112
113 def result_iterator(predicate):
114 """
115 Selecting iterator over cached results.
116
117 Looks for matching result from already performed scans
118 """
119 return (not simple_inspector(results[name]) for name in results
120 if predicate(configs[name]))
121
122 def result_cache(name, conf):
123 """Perform scan if config is not in results, caches result."""

Callers 1

conf_iteratorFunction · 0.85

Calls 1

simple_inspectorFunction · 0.85

Tested by

no test coverage detected