1 个仓库
Intercepts Kotlin suspend function calls at the bytecode level to allow stubbing and verification of coroutine-based methods.
Distinct from Coroutine Frameworks: Distinct from Coroutine Frameworks: focuses on intercepting suspend functions for mocking, not general coroutine concurrency management.
Explore 1 awesome GitHub repository matching web development · Suspend Function Interceptions. Refine with filters or upvote what's useful.
MockK is a Kotlin test double framework that creates mocks, spies, and relaxed mocks for unit testing, with support for final classes, static methods, and coroutines. It functions as a bytecode instrumentation library that modifies compiled class files at load time to intercept constructors, final methods, and static functions without source changes, and also provides dedicated libraries for constructor mocking and coroutine mocking. The framework is designed specifically for Kotlin, handling Kotlin-specific constructs like extension functions, singletons, and suspend functions. MockK disting
Intercepts Kotlin suspend function calls at the bytecode level to allow stubbing and verification of coroutine-based methods.