kyleg
var callcount = 1 val toBeMocked: (File)->Long = { _ -> callCount+=1 ; return 0L } and then use that instead? Basically writing my own cheapo stub