feat: Add macro editing UI

This commit is contained in:
Linnea Gräf
2025-06-04 18:45:39 +02:00
parent 9c32c6e824
commit 3695589a47
14 changed files with 379 additions and 47 deletions

View File

@@ -2,6 +2,7 @@ package moe.nea.firmament.util
object TestUtil {
inline fun <T> unlessTesting(block: () -> T): T? = if (isInTest) null else block()
@JvmField
val isInTest =
Thread.currentThread().stackTrace.any {
it.className.startsWith("org.junit.") || it.className.startsWith("io.kotest.")