public void testLiteralFunctionSmartGenVariadicArgs() throws Exception{ doTest(); }
@Override
protected void invoke(final Project project, final Editor editor, final GoFile file) {
PsiElement element = file.findElementAt(editor.getSelectionModel().getSelectionStart());
final GoLiteralExpression identifier = findParentOfType(element, GoLiteralExpression.class);
assertNotNull(identifier);
assertInstanceOf(identifier.getLiteral(), GoLiteralIdentifier.class);
CommandProcessor.getInstance().executeCommand(project, new Runnable() {
@Override
public void run() {
new CreateFunctionFix(identifier).invoke(project, file, editor, identifier, identifier);