Package-level declarations

API of TomTom Digital Cockpit's IPC framework specific to sharing data sources for testing purpose.

Types

Link copied to clipboard
@IviExperimental(reasons = [])
abstract class AbstractTestIviDataSource<E : Any, Q : Any>(val jumpingSupported: Boolean = true, val keyReuseSupported: Boolean = true) : IviDataSource<E, Q>

Base class for implementing an IviDataSource for testing purpose.

Link copied to clipboard
@IviExperimental(reasons = [])
class SimpleTestIviDataSource<E : Any, Q : Any>(dataByQuery: Map<Q, List<E>>, jumpingSupported: Boolean = true, keyReuseSupported: Boolean = true) : AbstractTestIviDataSource<E, Q>

An IviDataSource, for testing purpose, that creates IviPagingSources that allows loading of a predefined data list. The IviPagingSource allows loading of data from an dataByQuery entry. The data is loaded from the entry with a key that equals the query argument given to createPagingSource or createPagingSourceFlow.

Link copied to clipboard

An IviPagingSource, for testing purpose.

Functions

Link copied to clipboard
@IviExperimental(reasons = [])
fun <E : Any, Q : Any> assertIviDataSourceEquals(expectedData: List<E>, dataSource: IviDataSource<E, Q>, query: Q, message: String? = null)

Assert that dataSource contains expectedData for a given query, with an optional message.

Link copied to clipboard
@IviExperimental(reasons = [])
fun <E : Any> assertIviPagingSourceEquals(expectedData: List<E>, pagingSource: IviPagingSource<E>, message: String? = null)

Assert that pagingSource contains expectedData, with an optional message.