Home
last modified time | relevance | path

Searched refs:TryExpr (Results 1 – 1 of 1) sorted by relevance

/packages/modules/Connectivity/staticlibs/testutils/hostdevice/com/android/testutils/
DCleanup.kt77 fun <T> tryTest(block: () -> T) = TryExpr( in <lambda>()
87 inline class TryExpr<T>(val result: Result<T>) { class
88 inline infix fun <reified E : Throwable> catch(block: (E) -> T): TryExpr<T> { in catch()
91 return TryExpr(try { in catch()
99 inline infix fun cleanupStep(block: () -> Unit): TryExpr<T> { in cleanupStep()
104 return TryExpr(if (null == originalException) { in cleanupStep()