Is there a way to have a multi-line `mockk` statem...
# mockk
a
Is there a way to have a multi-line
mockk
statement: I'd like to spread a long statement like the following over several lines:
Copy code
every { <http://myThing.do|myThing.do>() } returns 1 andThenThrows Exception("No way!") andThen 3 andThen 4
the line gets too wide, is there a way to continue it:
Copy code
every { <http://myThing.do|myThing.do>() } returns 1 
  andThenThrows Exception("No way!") 
  andThen 3 
  andThen 4
TIA!
j
There's no way to do it with infix functions but iirc you can still use the dot notation like
returns(1).andThenThrows(...).andThen(3)
and then you can format it as you want
👍 1
a
@jdiaz thanks a lot
102 Views