-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
b298f13
commit fc2e6e8
Showing
6 changed files
with
56 additions
and
3 deletions.
There are no files selected for viewing
Empty file.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,19 @@ | ||
-- Test Coverage by Domain | ||
-- app/api/database/postgres/queries/axe/coverage.sql | ||
|
||
SELECT | ||
d.domain, | ||
COUNT(u.id) AS total_urls, | ||
COUNT(CASE WHEN u.active_scan_axe THEN 1 END) AS active_axe_urls, | ||
COUNT(CASE WHEN u.is_objective THEN 1 END) AS is_objective_urls, | ||
COUNT(CASE WHEN u.errored THEN 1 END) AS errored_urls, | ||
ROUND( | ||
100.0 * COUNT(CASE WHEN u.active_scan_axe THEN 1 END) / NULLIF(COUNT(u.id), 0), | ||
2 | ||
) AS domain_coverage_axe | ||
FROM targets.domains d | ||
LEFT JOIN targets.urls u ON d.id = u.domain_id | ||
WHERE d."domain" ILIKE '%s' | ||
GROUP BY d.domain | ||
ORDER BY d.domain; | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters