[go: nahoru, domu]

Skip to content

Commit

Permalink
More testing
Browse files Browse the repository at this point in the history
  • Loading branch information
oxisto committed Jun 28, 2024
1 parent e58bdc0 commit 8d6ecb4
Showing 1 changed file with 5 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,7 @@ package de.fraunhofer.aisec.cpg.graph

import de.fraunhofer.aisec.cpg.frontends.TestLanguageFrontend
import kotlin.test.Test
import kotlin.test.assertFalse
import kotlin.test.assertTrue

class ArgumentHolderTest {
Expand All @@ -46,6 +47,10 @@ class ArgumentHolderTest {
newAssignExpression(),
)

for (node in list) {
assertFalse(node.hasArgument(ref), "hasArgument failed for ${node::class}")
}

for (node in list) {
node += ref
assertTrue(node.hasArgument(ref), "hasArgument failed for ${node::class}")
Expand Down

0 comments on commit 8d6ecb4

Please sign in to comment.