in bot/code_coverage_bot/chunk_mapping.py [0:0]
def get_test_coverage_files(tests):
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.name": tests}},
]
},
"limit": 50000,
"select": ["source.file.name", "test.name"],
},
)
return r.json()["data"]