Skip to content
🤔 Documentation issue? Report it

//leakcanary/leakcanary/DetectLeaksAfterTestSuccess/Companion

Companion

object Companion

Functions

Name Summary
detectLeaksAfterTestSuccessWrapping fun RuleChain.detectLeaksAfterTestSuccessWrapping(tag: String, wrapped: RuleChain.() -> RuleChain): RuleChain
A helper function to trigger leak detection twice during test tear down, before and after the tear down of a set of wrapped rule chains. For example, this can be useful to detect leaks both right before and right after the activity under test is destroyed. Before means we can detect detached fragment leaks that go away when the activity is destroyed. After means we can detect activity leaks.