Skip to content

Add withConfig test support for kotlin2cpg#3001

Open
johannescoetzee wants to merge 4 commits into
masterfrom
johannes/kotlin-withconfig
Open

Add withConfig test support for kotlin2cpg#3001
johannescoetzee wants to merge 4 commits into
masterfrom
johannes/kotlin-withconfig

Conversation

@johannescoetzee

Copy link
Copy Markdown
Contributor

#2982 added a withConfig method to testCpgs to set the config on a per-testcase basis without having to wire class parameters through the various fixtures. This PR enables this for kotlin2cpg and adds a method that can be overridden to use the config for all tests in a suite.

@johannescoetzee
johannescoetzee requested review from ml86 and ursachec July 4, 2023 15:17
@johannescoetzee johannescoetzee changed the title Johannes/kotlin withconfig Add withConfig test support for kotlin2cpg Jul 4, 2023
…cpg/testfixtures/KotlinCodeToCpgFixture.scala

Co-authored-by: Claudiu-Vlad Ursache <claudiu+hw@shiftleft.io>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants