From d267913e206f5f7bfc16607c0dc058290e6b556f Mon Sep 17 00:00:00 2001 From: Linnea Gräf Date: Wed, 13 Nov 2024 13:40:50 +0100 Subject: test: Add sack util test --- src/main/kotlin/util/TestUtil.kt | 5 +++++ 1 file changed, 5 insertions(+) create mode 100644 src/main/kotlin/util/TestUtil.kt (limited to 'src/main/kotlin/util/TestUtil.kt') diff --git a/src/main/kotlin/util/TestUtil.kt b/src/main/kotlin/util/TestUtil.kt new file mode 100644 index 0000000..68a406f --- /dev/null +++ b/src/main/kotlin/util/TestUtil.kt @@ -0,0 +1,5 @@ +package moe.nea.firmament.util + +object TestUtil { + val isInTest = Thread.currentThread().stackTrace.any { it.className.startsWith("org.junit.") } +} -- cgit