Skip to content
🤔 Documentation issue? Report it

//leakcanary/leakcanary/TestDescriptionHolder

TestDescriptionHolder

object TestDescriptionHolder : TestRule

A TestRule that holds onto the test Description in a thread local while evaluating, making it possible to retrieve that test Description from the test thread via testDescription.

This rule is automatically applied by DetectLeaksAfterTestSuccess.

Functions

Name Summary
apply open override fun apply(base: Statement, description: Description): Statement
isEvaluating fun isEvaluating(): Boolean
wrap fun wrap(base: Statement, description: Description): Statement

Properties

Name Summary
testDescription val testDescription: Description