; Minor stylistic checkdoc fixes in test/**/*.el

This commit is contained in:
Stefan Kangas 2021-09-26 01:53:56 +02:00
parent 4cc4344943
commit 8bb28e740d
128 changed files with 302 additions and 209 deletions

View file

@ -688,4 +688,4 @@ This expects `auto-revert--messages' to be bound by
(ert-run-tests-batch "^auto-revert-")))
(provide 'auto-revert-tests)
;;; auto-revert-tests.el ends here
;;; autorevert-tests.el ends here

View file

@ -53,7 +53,7 @@ A and B should be calc expressions."
(defun calc-tests-simple (fun string &rest args)
"Push STRING on the calc stack, then call FUN and return the new top.
The result is a calc (i.e., lisp) expression, not its string representation.
The result is a calc (i.e., Lisp) expression, not its string representation.
Also pop the entire stack afterwards.
An existing calc stack is reused, otherwise a new one is created."
(calc-eval string 'push)
@ -448,7 +448,7 @@ An existing calc stack is reused, otherwise a new one is created."
;; Generalisation for any n, integral k≥0: use falling product
(/ (apply '* (number-sequence n (- n (1- k)) -1))
(calc-tests--fac k)))
(t (error "case not covered"))))
(t (error "Case not covered"))))
(defun calc-tests--calc-to-number (x)
"Convert a Calc object to a Lisp number."

View file

@ -48,4 +48,4 @@
(should (equal (calculator-string-to-number str) expected)))))))
(provide 'calculator-tests)
;; calculator-tests.el ends here
;;; calculator-tests.el ends here

View file

@ -111,3 +111,4 @@
(should (equal (calendar-french-date-string (list m d y)) str))))
(provide 'cal-french-tests)
;;; cal-french-tests.el ends here

View file

@ -1636,7 +1636,7 @@ SUMMARY:NNN Wwwwwwww Wwwww - Aaaaaa Pppppppp rrrrrr ddd oo Nnnnnnnn 30
(format-time-string "%FT%T%z" (encode-time time) 0)))
(defun icalendar-tests--decode-isodatetime (_ical-string)
"Test icalendar--decode-isodatetime."
"Test `icalendar--decode-isodatetime'."
(should (equal (icalendar-test--format "20040917T050910-0200")
"2004-09-17T03:09:10+0000"))
(should (equal (icalendar-test--format "20040917T050910")

View file

@ -17,6 +17,8 @@
;; You should have received a copy of the GNU General Public License
;; along with GNU Emacs. If not, see <https://www.gnu.org/licenses/>.
;;; Code:
(require 'ert)
(require 'solar)
@ -42,3 +44,5 @@
(should (< (abs (- sunset 17.72)) epsilon)))))
(provide 'solar-tests)
;;; solar-tests.el ends here

View file

@ -35,7 +35,7 @@
"Todo Archive mode test file.")
(defmacro with-todo-test (&rest body)
"Set up an isolated todo-mode test environment."
"Set up an isolated `todo-mode' test environment."
(declare (debug (body)))
`(let* ((todo-test-home (make-temp-file "todo-test-home-" t))
;; Since we change HOME, clear this to avoid a conflict

View file

@ -60,7 +60,7 @@
(semantic-fetch-tags))))
(when (or (not tags-expected) (not tags-actual))
(message "Tried to find test files in: %s" semantic-utest-c-test-directory)
(error "Failed: Discovered no tags in test files or test file not found."))
(error "Failed: Discovered no tags in test files or test file not found"))
;; Now that we have the tags, compare them for SPP accuracy.
(dolist (tag tags-actual)

View file

@ -489,4 +489,4 @@ tag that contains point, and return that."
(provide 'semantic-ia-utest)
;;; semantic-ia-utest.el ends here
;;; semantic-utest-ia.el ends here

View file

@ -29,6 +29,8 @@
(require 'cedet)
(require 'semantic)
;;; Code:
(defvar cedet-utest-directory
(let* ((C (file-name-directory (locate-library "cedet")))
(D (expand-file-name "../../test/manual/cedet/" C)))
@ -103,7 +105,7 @@ int calc_sv(int);
(defvar semantic-utest-C-filename-h
(concat (file-name-sans-extension semantic-utest-C-filename)
".h")
"Header file filename for C")
"Header file filename for C.")
(defvar semantic-utest-C-name-contents
@ -424,8 +426,7 @@ class aClass {
nil
(overlay 135 262 "phptest.php"))
)
"Expected results from the PHP Unit test"
)
"Expected results from the PHP Unit test.")
;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;

View file

@ -42,4 +42,4 @@
;; retrieve cached data
(should (equal (semantic-get-cache-data 'moose) data)))))
;;; gw-tests.el ends here
;;; fw-tests.el ends here

View file

@ -1,4 +1,4 @@
;;; comint-tests.el -*- lexical-binding:t -*-
;;; comint-tests.el --- Tests for comint.el -*- lexical-binding:t -*-
;; Copyright (C) 2010-2021 Free Software Foundation, Inc.
@ -94,4 +94,4 @@ password flow if it returns a nil value."
;; no-byte-compile: t
;; End:
;;; comint-testsuite.el ends here
;;; comint-tests.el ends here

View file

@ -37,7 +37,7 @@
;;;; showing/hiding obsolete options
(defgroup cus-edit-tests nil "test"
(defgroup cus-edit-tests nil "Test."
:group 'test-group)
(defcustom cus-edit-tests--obsolete-option-tag nil

View file

@ -70,3 +70,5 @@ multiple expansions."
;; C-u C-u C-M-/
(execute-kbd-macro [21 21 201326639]))
(should (string= (buffer-string) "abc\na")))))
;;; dabbrev-tests.el ends here

View file

@ -91,4 +91,4 @@
(provide 'descr-text-test)
;;; descr-text-test.el ends here
;;; descr-text-tests.el ends here

View file

@ -159,4 +159,4 @@
(dired-test--check-highlighting (nth 0 lines) '(8))))
(provide 'dired-aux-tests)
;; dired-aux-tests.el ends here
;;; dired-aux-tests.el ends here

View file

@ -518,4 +518,4 @@
(delete-directory testdir t)))))
(provide 'dired-tests)
;; dired-tests.el ends here
;;; dired-tests.el ends here

View file

@ -63,4 +63,4 @@
nil))))
(provide 'dired-x-tests)
;; dired-x-tests.el ends here
;;; dired-x-tests.el ends here

View file

@ -871,7 +871,7 @@ baz\"\""
(local-set-key (vector key) 'self-insert-command)))
(defun electric-layout-for-c-style-du-jour (inserted)
"A function to use in `electric-layout-rules'"
"A function to use in `electric-layout-rules'."
(when (memq inserted '(?\{ ?\}))
(save-excursion
(backward-char 2) (c-point-syntax) (forward-char) ; silly, but needed

View file

@ -1,4 +1,4 @@
;;; bytecomp-tests.el -*- lexical-binding:t -*-
;;; bytecomp-tests.el --- Tests for bytecomp.el -*- lexical-binding:t -*-
;; Copyright (C) 2008-2021 Free Software Foundation, Inc.
@ -1498,4 +1498,4 @@ EXPECTED-POINT BINDINGS (MODES \\='\\='(ruby-mode js-mode python-mode)) \
;; End:
(provide 'bytecomp-tests)
;; bytecomp-tests.el ends here.
;;; bytecomp-tests.el ends here

View file

@ -1,4 +1,4 @@
;;; cconv-tests.el -*- lexical-binding: t -*-
;;; cconv-tests.el --- Tests for cconv.el -*- lexical-binding: t -*-
;; Copyright (C) 2018-2021 Free Software Foundation, Inc.
@ -19,6 +19,8 @@
;;; Commentary:
;;; Code:
(require 'ert)
(require 'cl-lib)
@ -204,4 +206,4 @@
42)))
(provide 'cconv-tests)
;; cconv-tests.el ends here.
;;; cconv-tests.el ends here

View file

@ -22,22 +22,22 @@
;;; Commentary:
;;
;; Test method invocation order. From the common lisp reference
;; manual:
;; Test method invocation order. From the Common Lisp Reference
;; Manual:
;;
;; QUOTE:
;; - All the :before methods are called, in most-specific-first
;; order. Their values are ignored. An error is signaled if
;; call-next-method is used in a :before method.
;;
;; - The most specific primary method is called. Inside the body of a
;; - The most specific primary method is called. Inside the body of a
;; primary method, call-next-method may be used to call the next
;; most specific primary method. When that method returns, the
;; most specific primary method. When that method returns, the
;; previous primary method can execute more code, perhaps based on
;; the returned value or values. The generic function no-next-method
;; the returned value or values. The generic function no-next-method
;; is invoked if call-next-method is used and there are no more
;; applicable primary methods. The function next-method-p may be
;; used to determine whether a next method exists. If
;; applicable primary methods. The function next-method-p may be
;; used to determine whether a next method exists. If
;; call-next-method is not used, only the most specific primary
;; method is called.
;;
@ -46,12 +46,14 @@
;; call-next-method is used in a :after method.
;;
;;
;; Also test behavior of `call-next-method'. From clos.org:
;; Also test behavior of `call-next-method'. From clos.org:
;;
;; QUOTE:
;; When call-next-method is called with no arguments, it passes the
;; current method's original arguments to the next method.
;;; Code:
(require 'eieio)
(require 'ert)
@ -403,3 +405,5 @@
(should (equal (eieio-test--1 (make-instance 'CNM-2) 5)
'("CNM-1-1" "CNM-1-2" "CNM-0" 7 5)))
(should (equal (eieio-test--1 'CNM-2 6) '("subclass CNM-1-2" CNM-2 6))))
;;; eieio-test-methodinvoke.el ends here

View file

@ -165,9 +165,9 @@ Assume SLOTVALUE is a symbol of some sort."
((slot1 :initarg :slot1
:initform 1)
(slot2 :initform 2))
"Class for testing persistent saving of an object that isn't
persistent. This class is instead used as a slot value in a
persistent class.")
"Class for testing persistent saving of an object that isn't persistent.
This class is instead used as a slot value in a persistent
class.")
(defclass persistent-with-objs-slot (eieio-persistent)
((pnp :initarg :pnp

View file

@ -48,13 +48,13 @@
:type (or null class-a)
:documentation "Test self referencing types.")
)
"Class A")
"Class A.")
(defclass class-b ()
((land :initform "Sc"
:type string
:documentation "Detail about land."))
"Class B")
"Class B.")
(defclass class-ab (class-a class-b)
((amphibian :initform "frog"
@ -160,7 +160,7 @@
;; error
(should-error (abstract-class)))
(defgeneric generic1 () "First generic function")
(defgeneric generic1 () "First generic function.")
(ert-deftest eieio-test-03-generics ()
(defun anormalfunction () "A plain function for error testing." nil)
@ -901,12 +901,12 @@ Subclasses to override slot attributes.")
(defclass opt-test1 ()
()
"Abstract base class"
"Abstract base class."
:abstract t)
(defclass opt-test2 (opt-test1)
()
"Instantiable child")
"Instantiable child.")
(ert-deftest eieio-test-36-build-class-alist ()
(should (= (length (eieio-build-class-alist 'opt-test1 nil)) 2))

View file

@ -22,7 +22,7 @@
;;; Commentary:
;; Support file for `faceup-test-basics.el'. This file is used to test
;; Support file for `faceup-test-basics.el'. This file is used to test
;; `faceup-this-file-directory' in various contexts.
;;; Code:

View file

@ -271,7 +271,7 @@ identical output."
(unwind-protect
(progn
(iter-yield 1)
(error "test")
(error "Test")
(iter-yield 2))
(cl-incf nr-unwound))))))
(should (equal (iter-next iter) 1))

View file

@ -100,4 +100,4 @@ See Bug#24641."
`[,(+ .a) ,(+ .a .b .b)])
[1 5])))
;;; let-alist.el ends here
;;; let-alist-tests.el ends here

View file

@ -17,6 +17,8 @@
;; You should have received a copy of the GNU General Public License
;; along with GNU Emacs. If not, see <https://www.gnu.org/licenses/>.
;;; Code:
(require 'ert)
(require 'memory-report)

View file

@ -208,4 +208,4 @@ function being an around advice."
;; no-byte-compile: t
;; End:
;;; advice-tests.el ends here.
;;; nadvice-tests.el ends here

View file

@ -5,7 +5,7 @@
;;; Code:
(defun macro-aux-1 ( &rest forms)
"Description"
"Description."
`(progn ,@forms))
(provide 'macro-aux)

View file

@ -9,11 +9,11 @@
(require 'macro-aux)
(defmacro macro-problem-1 ( &rest forms)
"Description"
"Description."
`(progn ,@forms))
(defun macro-problem-func ()
""
"Description."
(macro-problem-1 'a 'b)
(macro-aux-1 'a 'b))

View file

@ -5,11 +5,11 @@
;;; Code:
(defmacro macro-aux-1 ( &rest forms)
"Description"
"Description."
`(progn ,@forms))
(defmacro macro-aux-3 ( &rest _)
"Description"
"Description."
90)
(provide 'macro-aux)

View file

@ -9,21 +9,21 @@
(require 'macro-aux)
(defmacro macro-problem-1 ( &rest forms)
"Description"
"Description."
`(progn ,(cadr (car forms))))
(defun macro-problem-func ()
""
"Description."
(list (macro-problem-1 '1 'b)
(macro-aux-1 'a 'b)))
(defmacro macro-problem-3 (&rest _)
"Description"
"Description."
10)
(defun macro-problem-10-and-90 ()
""
"Description."
(list (macro-problem-3 haha) (macro-aux-3 hehe)))
(provide 'macro-problem)

View file

@ -7,14 +7,14 @@
;;; Commentary:
;; This package provides a minor mode to frobnicate and/or bifurcate
;; any flanges you desire. To activate it, type "C-M-r M-3 butterfly"
;; any flanges you desire. To activate it, type "C-M-r M-3 butterfly"
;; and all your dreams will come true.
;;
;; This is a new, updated version.
;;; Code:
(defgroup simple-single nil "Simply a file"
(defgroup simple-single nil "Simply a file."
:group 'lisp)
(defcustom simple-single-super-sunday nil
@ -29,7 +29,7 @@ Default changed to nil."
;;;###autoload
(define-minor-mode simple-single-mode
"It does good things to stuff")
"It does good things to stuff.")
(provide 'simple-single)

View file

@ -8,12 +8,12 @@
;;; Commentary:
;; This package provides a minor mode to frobnicate and/or bifurcate
;; any flanges you desire. To activate it, type "C-M-r M-3 butterfly"
;; any flanges you desire. To activate it, type "C-M-r M-3 butterfly"
;; and all your dreams will come true.
;;; Code:
(defgroup signed-bad nil "Simply a file"
(defgroup signed-bad nil "Simply a file."
:group 'lisp)
(defcustom signed-bad-super-sunday t
@ -26,7 +26,7 @@
;;;###autoload
(define-minor-mode signed-bad-mode
"It does good things to stuff")
"It does good things to stuff.")
(provide 'signed-bad)

View file

@ -8,12 +8,12 @@
;;; Commentary:
;; This package provides a minor mode to frobnicate and/or bifurcate
;; any flanges you desire. To activate it, type "C-M-r M-3 butterfly"
;; any flanges you desire. To activate it, type "C-M-r M-3 butterfly"
;; and all your dreams will come true.
;;; Code:
(defgroup signed-good nil "Simply a file"
(defgroup signed-good nil "Simply a file."
:group 'lisp)
(defcustom signed-good-super-sunday t
@ -26,7 +26,7 @@
;;;###autoload
(define-minor-mode signed-good-mode
"It does good things to stuff")
"It does good things to stuff.")
(provide 'signed-good)

View file

@ -12,6 +12,6 @@
;;; Code:
(defvar simple-depend "Value"
"Some trivial code")
"Some trivial code.")
;;; simple-depend.el ends here

View file

@ -8,12 +8,12 @@
;;; Commentary:
;; This package provides a minor mode to frobnicate and/or bifurcate
;; any flanges you desire. To activate it, type "C-M-r M-3 butterfly"
;; any flanges you desire. To activate it, type "C-M-r M-3 butterfly"
;; and all your dreams will come true.
;;; Code:
(defgroup simple-single nil "Simply a file"
(defgroup simple-single nil "Simply a file."
:group 'lisp)
(defcustom simple-single-super-sunday t
@ -26,7 +26,7 @@
;;;###autoload
(define-minor-mode simple-single-mode
"It does good things to stuff")
"It does good things to stuff.")
(provide 'simple-single)

View file

@ -12,6 +12,6 @@
;;; Code:
(defvar simple-two-depend "Value"
"Some trivial code")
"Some trivial code.")
;;; simple-two-depend.el ends here

View file

@ -180,7 +180,7 @@
(replace-regexp-in-string "-pkg\\.el\\'" "" (package--description-file dir)))
(defun package-test-suffix-matches (base suffix-list)
"Return file names matching BASE concatenated with each item in SUFFIX-LIST"
"Return file names matching BASE concatenated with each item in SUFFIX-LIST."
(mapcan (lambda (item) (file-expand-wildcards (concat base item)))
suffix-list))

View file

@ -66,4 +66,4 @@
(should (equal (regexp-opt-charset '()) regexp-unmatchable)))
;;; regexp-tests.el ends here.
;;; regexp-opt-tests.el ends here

View file

@ -17,6 +17,8 @@
;; You should have received a copy of the GNU General Public License
;; along with GNU Emacs. If not, see <https://www.gnu.org/licenses/>.
;;; Code:
(require 'ert)
(require 'rx)
@ -583,3 +585,5 @@
"\\(?3:.+$\\)")))
(provide 'rx-tests)
;;; rx-tests.el ends here

View file

@ -17,6 +17,8 @@
;; You should have received a copy of the GNU General Public License
;; along with GNU Emacs. If not, see <https://www.gnu.org/licenses/>.
;;; Code:
(require 'ert)
(require 'shortdoc)
@ -43,3 +45,5 @@
(setq props (cddr props))))))))
(provide 'shortdoc-tests)
;;; shortdoc-tests.el ends here

View file

@ -77,12 +77,12 @@
"Testcover doesn't prevent testing of defcustom values."
;; ====
(defgroup testcover-testcase nil
"Test case for testcover"
"Test case for testcover."
:group 'lisp
:prefix "testcover-testcase-"
:version "26.0")
(defcustom testcover-testcase-flag t
"Test value used by testcover-tests.el"
"Test value used by testcover-tests.el."
:type 'boolean
:group 'testcover-testcase)
(defun testcover-testcase-get-flag ()
@ -111,7 +111,7 @@
"Wrapping a form with noreturn prevents splotching."
;; ====
(defun testcover-testcase-cancel (spacecraft)
(error "no destination for %s" spacecraft))
(error "No destination for %s" spacecraft))
(defun testcover-testcase-launch (spacecraft planet)
(if (null planet)
(noreturn (testcover-testcase-cancel spacecraft%%%))
@ -220,7 +220,7 @@
(defun testcover-testcase-cc (arg)
(condition-case nil
(if (null arg%%%)%%%
(error "foo")
(error "Foo")
"0")!!!
(error nil)))
(should-not (testcover-testcase-cc nil))
@ -510,4 +510,4 @@ regarding the odd-looking coverage result for the quoted form."
(testcover-testcase-cyc2 1 2)
(testcover-testcase-cyc2 1 4)
;; testcases.el ends here.
;;; testcases.el ends here

View file

@ -105,7 +105,7 @@
. (variable (x)))
( (let (1) 2)
. (variable 1))
( (error "asdf")
( (error "Asdf")
. #'error)
( (signal 'error "asdf")
. #'signal)

View file

@ -227,3 +227,5 @@
(when noninteractive
(kill-buffer "*erc-protocol*")
(should-not erc-debug-irc-protocol)))
;;; erc-tests.el ends here

View file

@ -119,3 +119,5 @@
'(bold erc-current-nick-face) str1)
(should (erc-faces-in str0))
(should (erc-faces-in str1)) ))
;;; erc-track-tests.el ends here

View file

@ -262,4 +262,4 @@ chars"
(provide 'eshell-tests)
;;; tests/eshell-tests.el ends here
;;; eshell-tests.el ends here

View file

@ -22,7 +22,7 @@
;;; Code:
(deftheme faces-test-dark
"")
"Dark test theme.")
(custom-theme-set-faces
'faces-test-dark

View file

@ -22,7 +22,7 @@
;;; Code:
(deftheme faces-test-light
"")
"Light test theme.")
(custom-theme-set-faces
'faces-test-light

View file

@ -25,7 +25,7 @@
(require 'ert)
(require 'ert-x)
(defgroup faces--test nil ""
(defgroup faces--test nil "Group to test faces."
:group 'faces--test)
(defface faces--test1

View file

@ -97,4 +97,4 @@
"more bits"))))
(provide 'gnus-search-tests)
;;; search-tests.el ends here
;;; gnus-search-tests.el ends here

View file

@ -132,4 +132,4 @@
(should (equal '("1") (gnus-setdiff '(2 "1" 2) '(2))))
(should (equal '("1" "1") (gnus-setdiff '(2 "1" 2 "1") '(2)))))
;;; gnustest-gnus-util.el ends here
;;; gnus-util-tests.el ends here

View file

@ -185,4 +185,4 @@ Hello.
(provide 'message-mode-tests)
;;; message-mode-tests.el ends here
;;; message-tests.el ends here

View file

@ -43,4 +43,4 @@ available (Bug#25468)."
0)))
(provide 'htmlfontify-tests)
;; htmlfontify-tests.el ends here
;;; htmlfontify-tests.el ends here

View file

@ -826,4 +826,4 @@
(should (equal (ibuffer-unary-operand '(not . a)) 'a)))
(provide 'ibuffer-tests)
;; ibuffer-tests.el ends here
;;; ibuffer-tests.el ends here

View file

@ -161,4 +161,4 @@ text.
(line-end-position)))))))
;;; info-xref.el ends here
;;; info-xref-tests.el ends here

View file

@ -246,3 +246,5 @@ At EOF:
(registers [17 0 0 0 0 0 0 0]))
(ccl-execute compiled registers)
(should (equal registers [2 16 0 0 0 0 0 1])))))
;;; ccl-tests.el ends here

View file

@ -58,3 +58,5 @@
(with-silent-modifications
(put-text-property (point-min) (point-max) 'fontified t))
(jit-lock-fontify-now (point-min) (point-max))))
;;; jit-lock-tests.el ends here

View file

@ -834,7 +834,7 @@ and `read-event' and `read-key-sequence' set up to return items from
EVENTS and SEQUENCES respectively. SEQUENCES may be nil, but
EVENTS should not be. EVENTS should be a list of symbols bound
in `kmacro-step-edit-map' or `query-replace' map, and this function
will do the keymap lookup for you. SEQUENCES should contain
will do the keymap lookup for you. SEQUENCES should contain
return values for `read-key-sequence'.
Before running the macro, the current buffer will be erased.

View file

@ -32,4 +32,4 @@
'rmail-edit-current-message))))
(provide 'rmail-tests)
;; rmail-tests.el ends here
;;; rmail-tests.el ends here

View file

@ -114,4 +114,4 @@ This is the epilogue. It is also to be ignored."))
(provide 'rmailmm-tests)
;; rmailmm-tests.el ends here
;;; rmailmm-tests.el ends here

View file

@ -35,11 +35,11 @@
(defvar uudecode-tests-encoded-str
(uudecode-tests-read-file (ert-resource-file "uuencoded.txt"))
"Uuencoded data for bookmark-tests.el
"Uuencoded data for bookmark-tests.el.
Same as `uudecode-tests-decoded-str' but uuencoded.")
(defvar uudecode-tests-decoded-str
(uudecode-tests-read-file (ert-resource-file "uudecoded.txt"))
"Plain text data for bookmark-tests.el
"Plain text data for bookmark-tests.el.
Same as `uudecode-tests-encoded-str' but plain text.")
(ert-deftest uudecode-tests-decode-region-internal ()

View file

@ -67,4 +67,4 @@
(require 'shr)
;;; shr-stream-tests.el ends here
;;; shr-tests.el ends here

View file

@ -128,7 +128,7 @@
(defvar socks-tests-canned-server-patterns nil
"Alist containing request/response cons pairs to be tried in order.
Vectors must match verbatim. Strings are considered regex patterns.")
Vectors must match verbatim. Strings are considered regex patterns.")
(defun socks-tests-canned-server-create ()
"Create and return a fake SOCKS server."

View file

@ -6071,7 +6071,7 @@ This requires restrictions of file name syntax."
'tramp-ftp-file-name-handler))
(defun tramp--test-crypt-p ()
"Check, whether the remote directory is crypted"
"Check, whether the remote directory is crypted."
(tramp-crypt-file-name-p tramp-test-temporary-file-directory))
(defun tramp--test-docker-p ()

View file

@ -1,4 +1,4 @@
;;; newcomment-tests.el -*- lexical-binding:t -*-
;;; newcomment-tests.el --- Tests for newcomment.el -*- lexical-binding:t -*-
;; Copyright (C) 2021 Free Software Foundation, Inc.
@ -36,4 +36,4 @@
(uncomment-region (point-min) (point-max))
(buffer-string))))))
;;; newcomment-testsuite.el ends here
;;; newcomment-tests.el ends here

View file

@ -29,3 +29,5 @@ Ref <https://debbugs.gnu.org/30310>."
(should (require 'org-version nil t))
(should (equal (version-to-list (org-release))
(cdr (assq 'org package--builtin-versions)))))
;;; org-tests.el ends here

View file

@ -37,4 +37,4 @@
(should (= (length (cookie-apropos "false" fortune-file)) 1))))
(provide 'fortune-tests)
;;; fortune-tests.el ends here
;;; cookie1-tests.el ends here

View file

@ -429,7 +429,7 @@ to (xref-elisp-test-descr-to-target xref)."
slot-1)
(cl-defgeneric xref-elisp-generic-no-methods (arg1 arg2)
"doc string generic no-methods"
"Doc string generic no-methods."
;; No default implementation, no methods, but fboundp is true for
;; this symbol; it calls cl-no-applicable-method
)
@ -440,44 +440,44 @@ to (xref-elisp-test-descr-to-target xref)."
;; this. It passes in interactive tests, so I haven't been able to
;; track down the problem.
(cl-defmethod xref-elisp-generic-no-default ((this xref-elisp-root-type) arg2)
"doc string generic no-default xref-elisp-root-type"
"Doc string generic no-default xref-elisp-root-type."
"non-default for no-default")
;; defgeneric after defmethod in file to ensure the fallback search
;; method of just looking for the function name will fail.
(cl-defgeneric xref-elisp-generic-no-default (arg1 arg2)
"doc string generic no-default generic"
"Doc string generic no-default generic."
;; No default implementation; this function calls the cl-generic
;; dispatching code.
)
(cl-defgeneric xref-elisp-generic-co-located-default (arg1 arg2)
"doc string generic co-located-default"
"Doc string generic co-located-default."
"co-located default")
(cl-defmethod xref-elisp-generic-co-located-default ((this xref-elisp-root-type) arg2)
"doc string generic co-located-default xref-elisp-root-type"
"Doc string generic co-located-default xref-elisp-root-type."
"non-default for co-located-default")
(cl-defgeneric xref-elisp-generic-separate-default (arg1 arg2)
"doc string generic separate-default"
"Doc string generic separate-default."
;; default implementation provided separately
)
(cl-defmethod xref-elisp-generic-separate-default (arg1 arg2)
"doc string generic separate-default default"
"Doc string generic separate-default default."
"separate default")
(cl-defmethod xref-elisp-generic-separate-default ((this xref-elisp-root-type) arg2)
"doc string generic separate-default xref-elisp-root-type"
"Doc string generic separate-default xref-elisp-root-type."
"non-default for separate-default")
(cl-defmethod xref-elisp-generic-implicit-generic (arg1 arg2)
"doc string generic implicit-generic default"
"Doc string generic implicit-generic default."
"default for implicit generic")
(cl-defmethod xref-elisp-generic-implicit-generic ((this xref-elisp-root-type) arg2)
"doc string generic implicit-generic xref-elisp-root-type"
"Doc string generic implicit-generic xref-elisp-root-type."
"non-default for implicit generic")
@ -623,35 +623,35 @@ to (xref-elisp-test-descr-to-target xref)."
(declare-function xref-elisp-overloadable-no-default-default "elisp-mode-tests")
(define-overloadable-function xref-elisp-overloadable-no-methods ()
"doc string overloadable no-methods")
"Doc string overloadable no-methods.")
(define-overloadable-function xref-elisp-overloadable-no-default ()
"doc string overloadable no-default")
"Doc string overloadable no-default.")
(define-mode-local-override xref-elisp-overloadable-no-default c-mode
(_start _end &optional _nonterminal _depth _returnonerror)
"doc string overloadable no-default c-mode."
"Doc string overloadable no-default c-mode."
"result overloadable no-default c-mode.")
(define-overloadable-function xref-elisp-overloadable-co-located-default ()
"doc string overloadable co-located-default"
"Doc string overloadable co-located-default."
"result overloadable co-located-default.")
(define-mode-local-override xref-elisp-overloadable-co-located-default c-mode
(_start _end &optional _nonterminal _depth _returnonerror)
"doc string overloadable co-located-default c-mode."
"Doc string overloadable co-located-default c-mode."
"result overloadable co-located-default c-mode.")
(define-overloadable-function xref-elisp-overloadable-separate-default ()
"doc string overloadable separate-default.")
"Doc string overloadable separate-default.")
(defun xref-elisp-overloadable-separate-default-default ()
"doc string overloadable separate-default default"
"Doc string overloadable separate-default default."
"result overloadable separate-default.")
(define-mode-local-override xref-elisp-overloadable-separate-default c-mode
(_start _end &optional _nonterminal _depth _returnonerror)
"doc string overloadable separate-default c-mode."
"Doc string overloadable separate-default c-mode."
"result overloadable separate-default c-mode.")
(xref-elisp-deftest find-defs-define-overload-no-methods

View file

@ -111,3 +111,5 @@
(should (visit-tags-table-buffer))
(should (equal tags-file-name (car tag-tables)))))
(delete-file file))))
;;; etags-tests.el ends here

View file

@ -193,7 +193,7 @@ SEVERITY-PREDICATE is used to setup
(defun flymake-tests--diagnose-words
(report-fn type words)
"Helper. Call REPORT-FN with diagnostics for WORDS in buffer."
"Helper. Call REPORT-FN with diagnostics for WORDS in buffer."
(funcall report-fn
(cl-loop
for word in words

View file

@ -17,6 +17,8 @@
;; You should have received a copy of the GNU General Public License
;; along with GNU Emacs. If not, see <https://www.gnu.org/licenses/>.
;;; Code:
(require 'ert)
(require 'gdb-mi)
@ -44,3 +46,5 @@
)
(provide 'gdb-mi-tests)
;;; gdb-mi-tests.el ends here

View file

@ -17,6 +17,8 @@
;; You should have received a copy of the GNU General Public License
;; along with GNU Emacs. If not, see <https://www.gnu.org/licenses/>.
;;; Code:
(require 'ert)
(require 'opascal)

View file

@ -17,6 +17,8 @@
;; You should have received a copy of the GNU General Public License
;; along with GNU Emacs. If not, see <https://www.gnu.org/licenses/>.
;;; Code:
(require 'ert)
(require 'pascal)
@ -61,3 +63,5 @@
(should (equal (point) 15))))
(provide 'pascal-tests)
;;; pascal-tests.el ends here

View file

@ -50,7 +50,7 @@
(lambda (_command) t))
((symbol-function 'process-lines)
(lambda (_program &rest _args)
(error "some error"))))
(error "Some error"))))
(should-not (sql-postgres-list-databases))))
;;; Check Connection Password Handling/Wallet

View file

@ -34,3 +34,5 @@
(autoloadp
(symbol-function
'ps-mule-initialize))))
;;; ps-print-tests.el ends here

View file

@ -21,6 +21,8 @@
;;; Commentary:
;;; Code:
(require 'ert)
(require 'ert-x)
(require 'saveplace)

View file

@ -175,3 +175,5 @@ to `ses--bar' and inserting a row, makes A2 value empty, and `ses--bar' equal to
(provide 'ses-tests)
;;; ses-tests.el ends here

View file

@ -1,4 +1,4 @@
;;; shell-tests.el -*- lexical-binding:t -*-
;;; shell-tests.el --- Tests for shell.el -*- lexical-binding:t -*-
;; Copyright (C) 2010-2021 Free Software Foundation, Inc.

View file

@ -972,4 +972,4 @@ See Bug#21722."
(should (= (length (delq nil (undo-make-selective-list 6 9))) 0))))
(provide 'simple-test)
;;; simple-test.el ends here
;;; simple-tests.el ends here

View file

@ -106,8 +106,8 @@
(defun so-long-tests-remember ()
"Remember the original states of modes and variables.
Call this after setting up a buffer in the normal (not so-long)
state for its major mode, so that after triggering a so-long
Call this after setting up a buffer in the normal (not `so-long')
state for its major mode, so that after triggering a `so-long'
action we can call `so-long-revert' and compare the reverted
state against this remembered state."
(setq so-long-tests-memory nil)

View file

@ -47,4 +47,4 @@
(provide 'tar-mode-tests)
;; tar-mode-tests.el ends here
;;; tar-mode-tests.el ends here

View file

@ -35,4 +35,4 @@
(provide 'term-tests)
;;; term-tests.el ends here
;;; tty-colors-tests.el ends here

View file

@ -77,3 +77,5 @@
(insert " ")
(dns-mode-ipv6-to-nibbles nil)
(should (equal (buffer-string) "8.b.d.0.1.0.0.2.ip6.arpa. ")))))
;;; dns-mode-tests.el ends here

View file

@ -70,7 +70,7 @@
;; UUID, only hex is allowed
("01234567-89ab-cdef-ABCD-EF0123456789" 1 uuid "01234567-89ab-cdef-ABCD-EF0123456789")
("01234567-89ab-cdef-ABCD-EF012345678G" 1 uuid nil))
"List of thing-at-point tests.
"List of `thing-at-point' tests.
Each list element should have the form
(STRING POS THING RESULT)
@ -231,4 +231,4 @@ position to retrieve THING.")
(goto-char 5)
(should (eq (symbol-at-point) 'bar))))
;;; thingatpt.el ends here
;;; thingatpt-tests.el ends here

View file

@ -86,7 +86,7 @@
(should (equal (time-stamp-string "%H %Z" ref-time1) "15 GMT")))))
(iter-defun time-stamp-test-pattern-sequential ()
"Iterate through each possibility for a part of time-stamp-pattern."
"Iterate through each possibility for a part of `time-stamp-pattern'."
(let ((pattern-value-parts
'(("4/" "10/" "-4/" "0/" "") ;0: line limit
("stamp<" "") ;1: start
@ -115,7 +115,7 @@
(extract-part 5))))))))))
(iter-defun time-stamp-test-pattern-multiply ()
"Iterate through every combination of parts of time-stamp-pattern."
"Iterate through every combination of parts of `time-stamp-pattern'."
(let ((line-limit-values '("" "4/"))
(start-values '("" "stamp<"))
(format-values '("%%" "%m"))
@ -871,7 +871,7 @@ The functions in `pattern-mod' are composed left to right."
(defmacro formatz-generate-tests
(form-strings hour-mod mins-mod secs-mod big-mod secbig-mod)
"Defines ert-deftest tests for time formats FORM-STRINGS.
"Defines tests for time formats FORM-STRINGS.
FORM-STRINGS is a list of formats, each \"%z\" or some variation thereof.
Each of the remaining arguments is an unquoted list of the form

View file

@ -21,6 +21,8 @@
;;; Commentary:
;;; Code:
(require 'ert)
(require 'ert-x)
(require 'time)

View file

@ -21,6 +21,8 @@
;;; Commentary:
;;; Code:
(require 'ert)
(require 'timezone)

View file

@ -23,7 +23,7 @@
;;; Commentary:
;; Test cases covering generic URI syntax as described in RFC3986,
;; section 3. Syntax Components and 4. Usage. See also appendix
;; section 3. Syntax Components and 4. Usage. See also appendix
;; A. Collected ABNF for URI, as the example given here are all
;; productions of this grammar.

View file

@ -29,8 +29,8 @@
content marker expected-defun)
"Generate an ert test for mode-own `add-log-current-defun-function'.
Run `add-log-current-defun' at the point where MARKER specifies
in a buffer which content is CONTENT under major mode MODE. Then
it compares the result with EXPECTED-DEFUN."
in a buffer which content is CONTENT under major mode MODE.
Then it compares the result with EXPECTED-DEFUN."
(let ((xname (intern (concat "add-log-current-defun-test-"
(symbol-name name)
))))

View file

@ -481,3 +481,4 @@ baz"))))
'("/tmp/ange-ftp1351895K.el" "/tmp/ange-ftp13518wvE.el")))))
(provide 'diff-mode-tests)
;;; diff-mode-tests.el ends here

View file

@ -34,3 +34,5 @@
(should (equal (buffer-substring (point-min) (point-max)) ""))))
(provide 'smerge-mode-tests)
;;; smerge-mode-tests.el ends here

View file

@ -153,4 +153,4 @@
t)))
(delete-directory homedir t))))
;;; vc-bzr.el ends here
;;; vc-bzr-tests.el ends here

View file

@ -51,7 +51,7 @@
;; We cannot call whitespace-mode because it will do nothing in batch
;; mode. So we call its innards instead.
(defun whitespace-tests-whitespace-mode-on ()
"Turn whitespace-mode on even in batch mode."
"Turn `whitespace-mode' on even in batch mode."
(whitespace-turn-on)
(whitespace-action-when-on)
(setq whitespace-mode t))

View file

@ -78,7 +78,7 @@
;; Bug#16344
"<!----><x>< /x>"
"<a>< b/></a>")
"List of XML strings that should signal an error in the parser")
"List of XML strings that should signal an error in the parser.")
(defvar xml-parse-tests--qnames
'( ;; Test data for name expansion
@ -199,4 +199,4 @@ Parser is called with and without 'symbol-qnames argument.")
;; no-byte-compile: t
;; End:
;;; xml-parse-tests.el ends here.
;;; xml-tests.el ends here

View file

@ -121,3 +121,5 @@ BidiCharacterTest.txt file."
(message "%s" (bidi-resolved-levels)))
(define-key global-map [f8] #'bidi-levels)
;;; biditest.el ends here

View file

@ -80,4 +80,4 @@ The search is done with the current EDE root."
(ede-locate-file-in-project loc file)
(data-debug-insert-object-slots loc "]")))
;;; ede-test.el ends here
;;; ede-tests.el ends here

View file

@ -271,3 +271,5 @@ tag that contains point, and return that."
Lcount (semantic-tag-name target)
(semantic-elapsed-time start nil)))
Lcount)))
;;; semantic-tests.el ends here

View file

@ -19,31 +19,29 @@
;; You should have received a copy of the GNU General Public License
;; along with GNU Emacs. If not, see <https://www.gnu.org/licenses/>.
;;; Require
;;
;;; Code:
(require 'semantic)
(require 'eieio "../eieio")
;; tags encapsulated in eval-when-compile and eval-and-compile
;; should be expanded out into the outer environment.
(eval-when-compile
(require 'semantic-imenu)
)
(require 'semantic-imenu))
(eval-and-compile
(defconst const-1 nil)
(defun function-1 (arg)
nil)
)
nil))
;;; Functions
;;
(defun a-defun (arg1 arg2 &optional arg3)
"doc a"
"Doc a."
nil)
(defun a-defun-interactive (arg1 arg2 &optional arg3)
"doc a that is a command"
"Doc a that is a command."
(interactive "R")
nil)
@ -52,15 +50,15 @@
nil)
(defsubst a-defsubst (arg1 arg2 &optional arg3)
"doc a-subst"
"Doc a-subst."
nil)
(defmacro a-defmacro (arg1 arg2 &optional arg3)
"doc a-macro"
"Doc a-macro."
nil)
(define-overload a-overload (arg)
"doc a-overload"
"Doc a-overload."
nil)
;;; Methods
@ -81,16 +79,16 @@
;;; Variables
;;
(defvar a-defvar (cons 1 2)
"Variable a")
"Variable a.")
;; FIXME: This practice is not recommended in recent Emacs. Remove?
(defvar a-defvar-star (cons 1 2)
"*User visible var a")
"*User visible var a.")
(defconst a-defconst 'a "var doc const")
(defconst a-defconst 'a "Var doc const.")
(defcustom a-defcustom nil
"doc custom"
"Doc custom."
:group 'a-defgroup
:type 'boolean)
@ -111,7 +109,7 @@
(defgroup a-defgroup nil
"Group for `emacs-lisp' regression-test")
"Group for `emacs-lisp' regression-test.")
;;; Classes
;;
@ -154,3 +152,5 @@
"some value")
(provide 'test)
;;; test.el ends here

Some files were not shown because too many files have changed in this diff Show more