in bot/code_coverage_bot/chunk_mapping.py [0:0]
def get_test_coverage_tests(suites):
r = requests.post(
ACTIVEDATA_QUERY_URL,
json={
"from": "coverage",
"where": {
"and": [
{"eq": {"repo.branch.name": "mozilla-central"}},
{"gte": {"repo.push.date": {"date": "today-week"}}},
{"gt": {"source.file.total_covered": 0}},
{"exists": "test.name"},
{"in": {"test.suite": suites}},
]
},
"limit": 50000,
"select": {"aggregate": "cardinality", "value": "source.file.name"},
"groupby": ["test.name"],
},
)
return r.json()["data"]