diff options
Diffstat (limited to 'src/main/kotlin/util/TestUtil.kt')
-rw-r--r-- | src/main/kotlin/util/TestUtil.kt | 5 |
1 files changed, 5 insertions, 0 deletions
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.") } +} |