From f6a4f6375f8c7e157159898add4040365ffbfa32 Mon Sep 17 00:00:00 2001 From: Robert Haimerl Date: Mon, 17 Jun 2024 12:13:28 +0200 Subject: [PATCH] fix tests --- .../aisec/codyze/backends/cpg/NeverEvaluationTest.kt | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/codyze-backends/cpg/src/test/kotlin/de/fraunhofer/aisec/codyze/backends/cpg/NeverEvaluationTest.kt b/codyze-backends/cpg/src/test/kotlin/de/fraunhofer/aisec/codyze/backends/cpg/NeverEvaluationTest.kt index 4f1ff30e9..b8495d07e 100644 --- a/codyze-backends/cpg/src/test/kotlin/de/fraunhofer/aisec/codyze/backends/cpg/NeverEvaluationTest.kt +++ b/codyze-backends/cpg/src/test/kotlin/de/fraunhofer/aisec/codyze/backends/cpg/NeverEvaluationTest.kt @@ -62,7 +62,7 @@ class NeverEvaluationTest { assertTrue("There were no findings which is unexpected") { findings.isNotEmpty() } val failFindings = findings.filter { it.kind == Finding.Kind.Fail } - assertEquals(4, failFindings.size, "Found ${failFindings.size} violation(s) instead of two violations") + assertEquals(2, failFindings.size, "Found ${failFindings.size} violation(s) instead of two violations") } } @@ -91,7 +91,7 @@ class NeverEvaluationTest { findings.all { it.kind == Finding.Kind.Pass } } - assertEquals(1, findings.size, "Found ${findings.size} finding(s) instead of one pass finding") + assertEquals(4, findings.size, "Found ${findings.size} finding(s) instead of one pass finding") } }