зеркало из https://github.com/github/codeql.git
Java: Add some unit tests for sourceModelKindConfig.
This commit is contained in:
Родитель
a9bc23fa3e
Коммит
4568cccd71
|
@ -0,0 +1 @@
|
|||
class Empty { }
|
|
@ -0,0 +1,5 @@
|
|||
| default |
|
||||
| remote |
|
||||
| request |
|
||||
| response |
|
||||
| uri-path |
|
|
@ -0,0 +1,5 @@
|
|||
import semmle.code.java.dataflow.ExternalFlowConfiguration as ExternalFlowConfiguration
|
||||
|
||||
query predicate supportedThreatModels(string kind) {
|
||||
ExternalFlowConfiguration::sourceModelKindConfig(kind)
|
||||
}
|
|
@ -0,0 +1,10 @@
|
|||
| cli |
|
||||
| database |
|
||||
| default |
|
||||
| environment |
|
||||
| file |
|
||||
| local |
|
||||
| remote |
|
||||
| request |
|
||||
| response |
|
||||
| uri-path |
|
|
@ -0,0 +1,8 @@
|
|||
extensions:
|
||||
extensions:
|
||||
|
||||
- addsTo:
|
||||
pack: codeql/java-all
|
||||
extensible: supportedThreatModels
|
||||
data:
|
||||
- ["local"] # Add the "local" group threat model.
|
|
@ -0,0 +1,5 @@
|
|||
import semmle.code.java.dataflow.ExternalFlowConfiguration as ExternalFlowConfiguration
|
||||
|
||||
query predicate supportedThreatModels(string kind) {
|
||||
ExternalFlowConfiguration::sourceModelKindConfig(kind)
|
||||
}
|
Загрузка…
Ссылка в новой задаче