Companion
Functions
Link copied to clipboard
fun RuleChain.detectLeaksAfterTestSuccessWrapping(tag: String, wrapped: RuleChain.() -> RuleChain): RuleChain
Content copied to clipboard
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.