I am working on a test suite which has a helper method such as:
def setupMocks(isChild: Boolean = false): Unit
and in some of the tests, it is invoked as :
setupMocks(_)
whereas in other tests, it is invoked as :
setupMocks()
What does the _
do here? What is the significance? I did try the debugger but it simply skips over and I'm unable to figure this out.