beginControlFlow

fun beginControlFlow(controlFlowName: String, controlFlowCode: String, vararg args: Any): FunctionSpec.Builder

Parameters

controlFlowName

the control flow construct (e.g. "if", "switch", etc.).

controlFlowCode

code for control flow, such as "foo == 5" Shouldn't contain braces or newline characters.