assertEquals("nil", childAt(0, expr.getArguments()).getText());
assertEquals("2", childAt(1, expr.getArguments()).getText());
}
public void testTwoParamsNilString() throws Exception {
GoFile file = get(
parse("" +
"package main\n" +
"import \"fmt\"\n" +
"func main() {\n" +
" fmt.Fprintf(nil, \"/*begin*/%f/*end.Missing parameter*/\\n\")\n" +
"}"));
GoCallOrConvExpression expr =
getAs(GoCallOrConvExpression.class,
castAs(GoExpressionStatement.class, 0,
get(
get(
file.getMainFunction()
).getBlock()
).getStatements()
).getExpression()
);