Skip to content

Commit

Permalink
MockK interception processor
Browse files Browse the repository at this point in the history
  • Loading branch information
oleksiyp committed Apr 21, 2018
1 parent 465fcdf commit a9cd6c2
Show file tree
Hide file tree
Showing 3 changed files with 1,033 additions and 0 deletions.
Expand Up @@ -55,6 +55,10 @@ internal class KonanLower(val context: Context) {
irModule.files.forEach(ExpectDeclarationsRemoving(context)::lower)
}

phaser.phase(KonanPhase.MOCKK_INTERCEPTION_PROCESSOR) {
MockKInterceptionProcessor(context).process(irModule)
}

phaser.phase(KonanPhase.TEST_PROCESSOR) {
TestProcessor(context).process(irModule)
}
Expand Down
Expand Up @@ -30,6 +30,7 @@ enum class KonanPhase(val description: String,
/* */ BACKEND("All backend"),
/* ... */ LOWER("IR Lowering"),
/* ... ... */ REMOVE_EXPECT_DECLARATIONS("Expect declarations removing"),
/* ... ... */ MOCKK_INTERCEPTION_PROCESSOR("Mock interceptor processor"),
/* ... ... */ TEST_PROCESSOR("Unit test processor"),
/* ... ... */ LOWER_BEFORE_INLINE("Special operations processing before inlining"),
/* ... ... */ LOWER_INLINE("Functions inlining", LOWER_BEFORE_INLINE),
Expand Down

0 comments on commit a9cd6c2

Please sign in to comment.