test(utils): 补充 deepListFiles 的单元测试.

补充单元测试项, 目前已实现 Utils 单元测试全覆盖(Logger Class 不算).
This commit is contained in:
2022-06-19 02:47:26 +08:00
parent f148c21390
commit c662b970f0
2 changed files with 164 additions and 6 deletions

View File

@ -71,11 +71,10 @@ fun <T : AutoCloseable> T.registerShutdownHook(): T {
return this
}
private val log = KotlinLogging.logger { }
private object UtilsInternal {
val autoCloseableSet = mutableSetOf<AutoCloseable>()
private val log = KotlinLogging.logger { }
init {
Runtime.getRuntime().addShutdownHook(Thread(this::doCloseResources, "Shutdown-AutoCloseable"))