[FIR] refactoring: extract registration of lazy declaration resolve contract checking to a separate function in tests

This commit is contained in:
Ilya Kirillov
2022-12-28 13:06:09 +01:00
committed by Space Team
parent 747ab5fdb3
commit a55b4a977b
5 changed files with 29 additions and 52 deletions
@@ -51,3 +51,7 @@ fun <T, R> ((TestServices, T) -> R).bind(value: T): Constructor<R> {
fun <T1, T2, R> ((TestServices, T1, T2) -> R).bind(value1: T1, value2: T2): Constructor<R> {
return { this.invoke(it, value1, value2) }
}
fun <R> (() -> R).coerce(): Constructor<R> {
return { this.invoke() }
}