mirror of
https://github.com/github/codeql.git
synced 2026-05-04 21:25:44 +02:00
C#: Move external api declarations to the library pack.
This commit is contained in:
@@ -1,16 +1,4 @@
|
||||
private import csharp
|
||||
// Use `semmle.code.csharp.telemetry.TestLibrary` instead.
|
||||
deprecated module;
|
||||
|
||||
pragma[nomagic]
|
||||
private predicate isTestNamespace(Namespace ns) {
|
||||
ns.getFullName()
|
||||
.matches([
|
||||
"NUnit.Framework%", "Xunit%", "Microsoft.VisualStudio.TestTools.UnitTesting%", "Moq%"
|
||||
])
|
||||
}
|
||||
|
||||
/**
|
||||
* A test library.
|
||||
*/
|
||||
class TestLibrary extends RefType {
|
||||
TestLibrary() { isTestNamespace(this.getNamespace()) }
|
||||
}
|
||||
import semmle.code.csharp.telemetry.TestLibrary
|
||||
|
||||
Reference in New Issue
Block a user