mirror of
https://github.com/github/codeql.git
synced 2026-03-28 02:08:17 +01:00
24 lines
571 B
Plaintext
24 lines
571 B
Plaintext
import csharp
|
|
import semmle.code.csharp.frameworks.Test
|
|
|
|
from Element e, string type, string framework
|
|
where
|
|
(
|
|
framework = e.(TestClass).getAQlClass() and type = "TestClass"
|
|
or
|
|
framework = e.(TestMethod).getAQlClass() and type = "TestMethod"
|
|
)
|
|
and
|
|
not framework = "NonNestedType"
|
|
and
|
|
not framework = "SourceDeclarationType"
|
|
and
|
|
not framework = "SourceDeclarationCallable"
|
|
and
|
|
not framework = "SourceDeclarationMethod"
|
|
and
|
|
not framework = "NonConstructedMethod"
|
|
and
|
|
not framework = "RuntimeInstanceMethod"
|
|
select e, type, framework
|