Skip to content

Commit 8f6fa62

Browse files
committed
test(model): Add a test for mainLicense()
Signed-off-by: Sebastian Schuberth <[email protected]>
1 parent f1d6e97 commit 8f6fa62

File tree

1 file changed

+7
-0
lines changed

1 file changed

+7
-0
lines changed

model/src/test/kotlin/licenses/ResolvedLicenseInfoTest.kt

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -47,6 +47,13 @@ import org.ossreviewtoolkit.utils.spdx.toSpdx
4747

4848
@DelicateCoroutinesApi
4949
class ResolvedLicenseInfoTest : WordSpec({
50+
"mainLicense()" should {
51+
"return declared and detected licenses, but no concluded license" {
52+
RESOLVED_LICENSE_INFO.mainLicense() shouldBe
53+
"($APACHE OR $MIT) AND ($MIT OR $GPL) AND ($BSD OR $GPL)".toSpdx()
54+
}
55+
}
56+
5057
"effectiveLicense()" should {
5158
"apply choices for LicenseView.ALL on all resolved licenses" {
5259
// All: (Apache-2.0 WITH LLVM-exception OR MIT) AND (MIT OR GPL-2.0-only) AND (0BSD OR GPL-2.0-only)

0 commit comments

Comments
 (0)