Skip to content

Commit a152115

Browse files
committed
Adjused package path
1 parent bb8aa17 commit a152115

File tree

8 files changed

+76
-50
lines changed

8 files changed

+76
-50
lines changed

codyze-compliance/src/integrationTest/kotlin/CommandTest.kt

Lines changed: 0 additions & 44 deletions
This file was deleted.
Lines changed: 69 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,69 @@
1+
/*
2+
* Copyright (c) 2025, Fraunhofer AISEC. All rights reserved.
3+
*
4+
* Licensed under the Apache License, Version 2.0 (the "License");
5+
* you may not use this file except in compliance with the License.
6+
* You may obtain a copy of the License at
7+
*
8+
* http://www.apache.org/licenses/LICENSE-2.0
9+
*
10+
* Unless required by applicable law or agreed to in writing, software
11+
* distributed under the License is distributed on an "AS IS" BASIS,
12+
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13+
* See the License for the specific language governing permissions and
14+
* limitations under the License.
15+
*
16+
* $$$$$$\ $$$$$$$\ $$$$$$\
17+
* $$ __$$\ $$ __$$\ $$ __$$\
18+
* $$ / \__|$$ | $$ |$$ / \__|
19+
* $$ | $$$$$$$ |$$ |$$$$\
20+
* $$ | $$ ____/ $$ |\_$$ |
21+
* $$ | $$\ $$ | $$ | $$ |
22+
* \$$$$$ |$$ | \$$$$$ |
23+
* \______/ \__| \______/
24+
*
25+
*/
26+
package de.fraunhofer.aisec.codyze.compliance /*
27+
* Copyright (c) 2025, Fraunhofer AISEC. All rights reserved.
28+
*
29+
* Licensed under the Apache License, Version 2.0 (the "License");
30+
* you may not use this file except in compliance with the License.
31+
* You may obtain a copy of the License at
32+
*
33+
* http://www.apache.org/licenses/LICENSE-2.0
34+
*
35+
* Unless required by applicable law or agreed to in writing, software
36+
* distributed under the License is distributed on an "AS IS" BASIS,
37+
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
38+
* See the License for the specific language governing permissions and
39+
* limitations under the License.
40+
*
41+
* $$$$$$\ $$$$$$$\ $$$$$$\
42+
* $$ __$$\ $$ __$$\ $$ __$$\
43+
* $$ / \__|$$ | $$ |$$ / \__|
44+
* $$ | $$$$$$$ |$$ |$$$$\
45+
* $$ | $$ ____/ $$ |\_$$ |
46+
* $$ | $$\ $$ | $$ | $$ |
47+
* \$$$$$ |$$ | \$$$$$ |
48+
* \______/ \__| \______/
49+
*
50+
*/
51+
52+
import com.github.ajalt.clikt.testing.test
53+
import kotlin.test.Test
54+
import kotlin.test.assertEquals
55+
56+
class CommandIntegrationTest {
57+
@Test
58+
fun testScanCommand() {
59+
val command = ScanCommand()
60+
val result =
61+
command.test(
62+
"--project-dir src/integrationTest/resources/demo-app --sources src/integrationTest/resources/demo-app/main.py"
63+
)
64+
assertEquals(
65+
"Message(arguments=null, id=null, markdown=This is a **finding**, properties=null, text=null)\n",
66+
result.output,
67+
)
68+
}
69+
}

codyze-compliance/src/main/kotlin/de/fraunhofer/aisec/cpg/codyze/compliance/Command.kt renamed to codyze-compliance/src/main/kotlin/de/fraunhofer/aisec/codyze/compliance/Command.kt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@
2323
* \______/ \__| \______/
2424
*
2525
*/
26-
package de.fraunhofer.aisec.cpg.codyze.compliance
26+
package de.fraunhofer.aisec.codyze.compliance
2727

2828
import com.github.ajalt.clikt.core.CliktCommand
2929
import com.github.ajalt.clikt.core.subcommands

codyze-compliance/src/main/kotlin/de/fraunhofer/aisec/cpg/codyze/compliance/SecurityGoal.kt renamed to codyze-compliance/src/main/kotlin/de/fraunhofer/aisec/codyze/compliance/SecurityGoal.kt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@
2323
* \______/ \__| \______/
2424
*
2525
*/
26-
package de.fraunhofer.aisec.cpg.codyze.compliance
26+
package de.fraunhofer.aisec.codyze.compliance
2727

2828
import com.charleskorn.kaml.Yaml
2929
import com.charleskorn.kaml.decodeFromStream

codyze-compliance/src/test/kotlin/de/fraunhofer/aisec/cpg/codyze/compliance/CommandTest.kt renamed to codyze-compliance/src/test/kotlin/de/fraunhofer/aisec/codyze/compliance/CommandTest.kt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@
2323
* \______/ \__| \______/
2424
*
2525
*/
26-
package de.fraunhofer.aisec.cpg.codyze.compliance
26+
package de.fraunhofer.aisec.codyze.compliance
2727

2828
import com.github.ajalt.clikt.testing.test
2929
import kotlin.test.*

codyze-compliance/src/test/kotlin/de/fraunhofer/aisec/cpg/codyze/compliance/SecurityGoalTest.kt renamed to codyze-compliance/src/test/kotlin/de/fraunhofer/aisec/codyze/compliance/SecurityGoalTest.kt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@
2323
* \______/ \__| \______/
2424
*
2525
*/
26-
package de.fraunhofer.aisec.cpg.codyze.compliance
26+
package de.fraunhofer.aisec.codyze.compliance
2727

2828
import de.fraunhofer.aisec.cpg.ScopeManager
2929
import de.fraunhofer.aisec.cpg.TranslationConfiguration

codyze/src/main/kotlin/de/fraunhofer/aisec/cpg/codyze/Application.kt renamed to codyze/src/main/kotlin/de/fraunhofer/aisec/codyze/Application.kt

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -23,16 +23,17 @@
2323
* \______/ \__| \______/
2424
*
2525
*/
26-
package de.fraunhofer.aisec.cpg.codyze
26+
package de.fraunhofer.aisec.codyze
2727

2828
import com.github.ajalt.clikt.core.CliktCommand
2929
import com.github.ajalt.clikt.core.main
3030
import com.github.ajalt.clikt.core.subcommands
31+
import de.fraunhofer.aisec.codyze.compliance.Command
3132

3233
class Codyze : CliktCommand() {
3334
override fun run() {}
3435
}
3536

3637
fun main(args: Array<String>) {
37-
Codyze().subcommands(de.fraunhofer.aisec.cpg.codyze.compliance.Command).main(args)
38+
Codyze().subcommands(Command).main(args)
3839
}

0 commit comments

Comments
 (0)