Address review, also run semmle-util tests.

This commit is contained in:
Cornelius Riemenschneider
2024-12-09 12:19:01 +01:00
parent 18560cde9d
commit 526dbe5901
7 changed files with 11 additions and 9 deletions

View File

@@ -74,8 +74,9 @@ test_suite(
name = "unit-tests",
tags = ["csharp"],
tests = [
"//csharp/autobuilder/Semmle.Autobuild.CSharp.Tests:t",
"//csharp/autobuilder/Semmle.Autobuild.Cpp.Tests:t",
"//csharp/extractor/Semmle.Extraction.Tests:t",
"//csharp/autobuilder/Semmle.Autobuild.CSharp.Tests:acst",
"//csharp/autobuilder/Semmle.Autobuild.Cpp.Tests:acpt",
"//csharp/extractor/Semmle.Extraction.Tests:et",
"//csharp/extractor/Semmle.Util.Tests:ut",
],
)

View File

@@ -5,7 +5,7 @@ load(
codeql_xunit_test(
# short name as we run into long path limitations on Windows
name = "t",
name = "acst",
srcs = glob([
"*.cs",
]),

View File

@@ -5,7 +5,7 @@ load(
codeql_xunit_test(
# short name as we run into long path limitations on Windows
name = "t",
name = "acpt",
srcs = glob([
"*.cs",
]),

View File

@@ -10,7 +10,7 @@ codeql_csharp_library(
"SourceGenerators/**/*.cs",
]),
allow_unsafe_blocks = True,
internals_visible_to = ["t"],
internals_visible_to = ["et"],
visibility = ["//csharp:__subpackages__"],
deps = [
"//csharp/extractor/Semmle.Extraction.CSharp",

View File

@@ -8,7 +8,7 @@ codeql_csharp_library(
srcs = glob([
"*.cs",
]),
internals_visible_to = ["t"],
internals_visible_to = ["et"],
visibility = ["//csharp:__subpackages__"],
deps = [
"//csharp/extractor/Semmle.Extraction.CSharp.DependencyFetching",

View File

@@ -5,7 +5,7 @@ load(
codeql_xunit_test(
# short name as we run into long path limitations on Windows
name = "t",
name = "et",
srcs = glob([
"*.cs",
]),

View File

@@ -4,7 +4,8 @@ load(
)
codeql_xunit_test(
name = "Semmle.Util.Tests",
# short name as we run into long path limitations on Windows
name = "ut",
srcs = glob([
"*.cs",
]),