We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
PackageConfigurationTest
1 parent 5f5de54 commit 0c7c054Copy full SHA for 0c7c054
model/src/test/kotlin/config/PackageConfigurationTest.kt
@@ -180,5 +180,18 @@ class PackageConfigurationTest : WordSpec({
180
REPOSITORY_PROVENANCE
181
) shouldBe true
182
}
183
+
184
+ "return false if only the source code origin is not equal" {
185
+ val config =
186
+ PackageConfiguration(
187
+ id = Identifier.EMPTY.copy(name = "some-name"),
188
+ sourceCodeOrigin = SourceCodeOrigin.VCS
189
+ )
190
191
+ config.matches(
192
+ config.id,
193
+ ARTIFACT_PROVENANCE
194
+ ) shouldBe false
195
+ }
196
197
})
0 commit comments