Skip to content

Commit

Permalink
Add test for autoload functions
Browse files Browse the repository at this point in the history
  • Loading branch information
yasuyk committed Nov 5, 2016
1 parent eef84d4 commit f1929b4
Showing 1 changed file with 12 additions and 0 deletions.
12 changes: 12 additions & 0 deletions test/test-package-install.el
Original file line number Diff line number Diff line change
Expand Up @@ -3,3 +3,15 @@
(setq byte-compile-error-on-warn t)
(require 'package)
(package-install-file "helm-git-grep.el")

(defun should-autoload (c)
(let ((s (symbol-function c)))
(unless (autoloadp s)
(message "Error: %s is not autoload" c)
(kill-emacs 1))))

(should-autoload 'helm-git-grep-ls-files-limited-by-pathspec)
(should-autoload 'helm-git-grep)
(should-autoload 'helm-git-grep-from-isearch)
(should-autoload 'helm-git-grep-with-exclude-file-pattern)
(should-autoload 'helm-git-grep-from-helm)

0 comments on commit f1929b4

Please sign in to comment.