MCPcopy Index your code
hub / github.com/google/clusterfuzz / add

Method add

src/appengine/handlers/commit_range.py:98–104  ·  view source on GitHub ↗

Set query based on if range should include 0 or not.

(self, query, params)

Source from the content-addressed store, hash-verified

96 """Filter for including a range starting with 0."""
97
98 def add(self, query, params):
99 """Set query based on if range should include 0 or not."""
100 value = params.get('includeZero', False)
101 prefix = params['type']
102
103 if not value:
104 query.raw_filter('{prefix}_range_start > 0'.format(prefix=prefix))
105
106
107class TypeFilter(filters.Filter):

Callers

nothing calls this directly

Calls 3

raw_filterMethod · 0.80
formatMethod · 0.80
getMethod · 0.45

Tested by

no test coverage detected