Add tests on MessagesView

This commit is contained in:
Benoit Marty 2024-02-07 21:14:58 +01:00 committed by Benoit Marty
parent 4e0f308cac
commit fa52ff54c8
8 changed files with 376 additions and 23 deletions

View file

@ -28,6 +28,12 @@ class EnsureNeverCalledWithParam<T> : (T) -> Unit {
}
}
class EnsureNeverCalledWithParamAndResult<T, R> : (T) -> R {
override fun invoke(p1: T): R {
throw AssertionError("Should not be called and is called with $p1")
}
}
class EnsureNeverCalledWithTwoParams<T, U> : (T, U) -> Unit {
override fun invoke(p1: T, p2: U) {
throw AssertionError("Should not be called and is called with $p1 and $p2")