feat: Add pickobulus blocker on private island
This commit is contained in:
@@ -1,6 +1,7 @@
|
||||
package moe.nea.firmament.util
|
||||
|
||||
object TestUtil {
|
||||
inline fun <T> unlessTesting(block: () -> T): T? = if (isInTest) null else block()
|
||||
val isInTest =
|
||||
Thread.currentThread().stackTrace.any {
|
||||
it.className.startsWith("org.junit.") || it.className.startsWith("io.kotest.")
|
||||
|
||||
Reference in New Issue
Block a user