Skip to content
🤔 Documentation issue? Report it

//leakcanary-repo/leakcanary/TestDescriptionHolder

TestDescriptionHolder

[androidJvm]\ 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 [androidJvm]
open override fun apply(base: Statement, description: Description): Statement
isEvaluating [androidJvm]
fun isEvaluating(): Boolean
wrap [androidJvm]
fun wrap(base: Statement, description: Description): Statement

Properties

Name Summary
testDescription [androidJvm]
val testDescription: Description