Skip to content

Commit 766dcc4

Browse files
committed
ThreatModels: Expose knownThreatModel
Without, it's impossible to write test showing what threat-models are active by default... unless I provide a hardcoded list in the test itself, which is not any fun.
1 parent 5ec8e5d commit 766dcc4

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

shared/threat-models/codeql/threatmodels/ThreatModels.qll

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@ extensible predicate threatModelConfiguration(string kind, boolean enable, int p
2929
extensible private predicate threatModelGrouping(string kind, string group);
3030

3131
/** Holds if the specified threat model kind is mentioned in either the configuration or grouping table. */
32-
private predicate knownThreatModel(string kind) {
32+
predicate knownThreatModel(string kind) {
3333
threatModelConfiguration(kind, _, _) or
3434
threatModelGrouping(kind, _) or
3535
threatModelGrouping(_, kind) or

0 commit comments

Comments
 (0)