Replace the existing RoomSummaryProviderMock with a generated one

This commit is contained in:
Stefan Ceriu
2024-02-28 18:38:13 +02:00
committed by Stefan Ceriu
parent 5f0c782ce2
commit 932ba75550
22 changed files with 150 additions and 82 deletions
@@ -64,6 +64,15 @@ enum RoomSummary: CustomStringConvertible, Equatable {
}
}
var isDirect: Bool {
switch self {
case .empty:
return false
case .invalidated(let details), .filled(let details):
return details.isDirect
}
}
var description: String {
switch self {
case .empty:
@@ -111,6 +120,7 @@ enum RoomSummaryProviderFilter: Equatable {
case include(Predicate)
}
// sourcery: AutoMockable
protocol RoomSummaryProviderProtocol {
/// Publishes the currently available room summaries
var roomListPublisher: CurrentValuePublisher<[RoomSummary], Never> { get }