From 1c63cdf42a13789a992a5c034ae38022f9f5d1f3 Mon Sep 17 00:00:00 2001 From: Frank Viernau Date: Wed, 1 Nov 2023 00:44:12 +0100 Subject: [PATCH] test(go): Use a more speaking name for a test project dir Signed-off-by: Frank Viernau --- ...ed-output.yml => project-with-tests-expected-output.yml} | 0 .../synthetic/gomod/{gomod => project-with-tests}/go.mod | 0 .../synthetic/gomod/{gomod => project-with-tests}/go.sum | 0 .../synthetic/gomod/{gomod => project-with-tests}/main.go | 0 .../gomod/{gomod => project-with-tests}/main_test.go | 0 .../package-managers/go/src/funTest/kotlin/GoModFunTest.kt | 6 +++--- 6 files changed, 3 insertions(+), 3 deletions(-) rename plugins/package-managers/go/src/funTest/assets/projects/synthetic/gomod/{gomod-expected-output.yml => project-with-tests-expected-output.yml} (100%) rename plugins/package-managers/go/src/funTest/assets/projects/synthetic/gomod/{gomod => project-with-tests}/go.mod (100%) rename plugins/package-managers/go/src/funTest/assets/projects/synthetic/gomod/{gomod => project-with-tests}/go.sum (100%) rename plugins/package-managers/go/src/funTest/assets/projects/synthetic/gomod/{gomod => project-with-tests}/main.go (100%) rename plugins/package-managers/go/src/funTest/assets/projects/synthetic/gomod/{gomod => project-with-tests}/main_test.go (100%) diff --git a/plugins/package-managers/go/src/funTest/assets/projects/synthetic/gomod/gomod-expected-output.yml b/plugins/package-managers/go/src/funTest/assets/projects/synthetic/gomod/project-with-tests-expected-output.yml similarity index 100% rename from plugins/package-managers/go/src/funTest/assets/projects/synthetic/gomod/gomod-expected-output.yml rename to plugins/package-managers/go/src/funTest/assets/projects/synthetic/gomod/project-with-tests-expected-output.yml diff --git a/plugins/package-managers/go/src/funTest/assets/projects/synthetic/gomod/gomod/go.mod b/plugins/package-managers/go/src/funTest/assets/projects/synthetic/gomod/project-with-tests/go.mod similarity index 100% rename from plugins/package-managers/go/src/funTest/assets/projects/synthetic/gomod/gomod/go.mod rename to plugins/package-managers/go/src/funTest/assets/projects/synthetic/gomod/project-with-tests/go.mod diff --git a/plugins/package-managers/go/src/funTest/assets/projects/synthetic/gomod/gomod/go.sum b/plugins/package-managers/go/src/funTest/assets/projects/synthetic/gomod/project-with-tests/go.sum similarity index 100% rename from plugins/package-managers/go/src/funTest/assets/projects/synthetic/gomod/gomod/go.sum rename to plugins/package-managers/go/src/funTest/assets/projects/synthetic/gomod/project-with-tests/go.sum diff --git a/plugins/package-managers/go/src/funTest/assets/projects/synthetic/gomod/gomod/main.go b/plugins/package-managers/go/src/funTest/assets/projects/synthetic/gomod/project-with-tests/main.go similarity index 100% rename from plugins/package-managers/go/src/funTest/assets/projects/synthetic/gomod/gomod/main.go rename to plugins/package-managers/go/src/funTest/assets/projects/synthetic/gomod/project-with-tests/main.go diff --git a/plugins/package-managers/go/src/funTest/assets/projects/synthetic/gomod/gomod/main_test.go b/plugins/package-managers/go/src/funTest/assets/projects/synthetic/gomod/project-with-tests/main_test.go similarity index 100% rename from plugins/package-managers/go/src/funTest/assets/projects/synthetic/gomod/gomod/main_test.go rename to plugins/package-managers/go/src/funTest/assets/projects/synthetic/gomod/project-with-tests/main_test.go diff --git a/plugins/package-managers/go/src/funTest/kotlin/GoModFunTest.kt b/plugins/package-managers/go/src/funTest/kotlin/GoModFunTest.kt index e037d6ecb4d3c..7495cace2186b 100644 --- a/plugins/package-managers/go/src/funTest/kotlin/GoModFunTest.kt +++ b/plugins/package-managers/go/src/funTest/kotlin/GoModFunTest.kt @@ -35,9 +35,9 @@ import org.ossreviewtoolkit.utils.test.matchExpectedResult class GoModFunTest : StringSpec({ val testDir = getAssetFile("projects/synthetic/gomod") - "Project dependencies are detected correctly" { - val definitionFile = testDir.resolve("gomod/go.mod") - val expectedResultFile = testDir.resolve("gomod-expected-output.yml") + "Project dependencies are detected correctly given a project with test dependencies" { + val definitionFile = testDir.resolve("project-with-tests/go.mod") + val expectedResultFile = testDir.resolve("project-with-tests-expected-output.yml") val result = create("GoMod").resolveSingleProject(definitionFile)