          ,@body))))
 
 (ycmd-ert-deftest get-defined-subcommands-cpp "test.cpp" 'c++-mode
-  :line 1 :column 1
   (let ((commands '("ClearCompilationFlagCache" "FixIt" "GetDoc"
                     "GetDocImprecise" "GetParent" "GetType"
                     "GetTypeImprecise" "GoTo" "GoToDeclaration"

  (let* ((full-name (intern (format "ycmd-test-%s" name)))
         (keys-and-body (ert--parse-keys-and-body keys-and-body))
         (body (cadr keys-and-body))
         (keys (car keys-and-body)))
    `(ert-deftest ,full-name ()
       (ycmd-ert-with-resource-buffer ,filename ,mode
         (let ((current-position
                (ycmd--col-line-to-position
                 ,(plist-get keys :column)
                 ,(plist-get keys :line)
                 (current-buffer))))
           (goto-char current-position)
           ,@body)))))

(defmacro ycmd-test-with-completer-command (subcommand &rest body)

    (should (equal result commands))))

(ycmd-ert-deftest get-defined-subcommands-python "test.py" 'python-mode
  (let ((commands '("GetDoc" "GoTo" "GoToDeclaration" "GoToDefinition"
                    "GoToReferences" "RestartServer"))
        (result (ycmd--get-defined-subcommands)))
    (should (equal result commands))))

(ycmd-ert-deftest get-defined-subcommands-go "test.go" 'go-mode
  (let ((commands '("GoTo" "GoToDeclaration" "GoToDefinition"
                    "RestartServer"))
        (result (ycmd--get-defined-subcommands)))
    (should (equal result commands))))

(ycmd-ert-deftest get-defined-subcommands-typescript "test.ts" 'typescript-mode
  (let ((commands '("GetDoc" "GetType" "GoToDefinition" "GoToReferences"
                    "GoToType" "RefactorRename" "RestartServer"))
        (result (ycmd--get-defined-subcommands)))
    (should (equal result commands))))

(ycmd-ert-deftest get-defined-subcommands-javascript "simple_test.js" 'js-mode
  (let ((commands '("GetDoc" "GetType" "GoTo" "GoToDefinition"
                    "GoToReferences" "RefactorRename" "RestartServer"))
        (result (ycmd--get-defined-subcommands)))
