Skip to content

Commit cc90ba5

Browse files
committed
Rust: Create a less noisy version of the summary stats query, for use in tests.
1 parent 32e2c19 commit cc90ba5

File tree

6 files changed

+21
-3
lines changed

6 files changed

+21
-3
lines changed
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
queries/summary/SummaryStats.ql
1+
queries/summary/SummaryStatsLess.ql
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
queries/summary/SummaryStats.ql
1+
queries/summary/SummaryStatsLess.ql
Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,18 @@
1+
/**
2+
* @name Summary Statistics Less
3+
* @description A table of summary statistics about a database, with data that
4+
* has been found to be noisy on tests removed.
5+
* @kind metric
6+
* @id rust/summary/summary-statistics-less
7+
* @tags summary
8+
*/
9+
10+
import rust
11+
import Stats
12+
13+
from string key, int value
14+
where
15+
extractionStats(key, value)
16+
or
17+
inconsistencyStats(key, value)
18+
select key, value order by key

rust/ql/test/query-tests/diagnostics/SummaryStats.qlref

Lines changed: 0 additions & 1 deletion
This file was deleted.
Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
queries/summary/SummaryStatsLess.ql

0 commit comments

Comments
 (0)