Coverage Summary for Class: ReversibleFunction (kweb.state)
Class | Class, % | Method, % | Branch, % | Line, % | Instruction, % |
---|---|---|---|---|---|
ReversibleFunction | 100% (1/1) | 100% (1/1) | 100% (1/1) | 100% (7/7) |
package kweb.state
/**
* Defines a reversible function, for use by [KVar.map].
*/
abstract class ReversibleFunction<Input, Output>(val label: String) {
abstract operator fun invoke(from: Input): Output
abstract fun reverse(original: Input, change: Output): Input
}