SectionsTestHelper
A helper for testing section components.
Allows testing a GroupsSectionSpec
's direct children without building the whole hieararchy. Also allows simpler State updates testing by keeping trach of a scoped section context.
Functions
Link copied to clipboard
Link copied to clipboard
Dispatches an event to the section
Link copied to clipboard
open fun dispatchLoadingEvent(context: SectionContext, isEmpty: Boolean, loadingState: LoadingEvent.LoadingState, t: Throwable)
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Get child sections for the given section.
Link copied to clipboard
Return a generic SectionContext you can use to create sections.
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Return the specific SectionContext that's been scoped to the given section.
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Get the state container of the given section.
Link copied to clipboard
Get sub sections for the given Children.
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard