diff options
| author | Richard M. Stallman | 2003-08-06 01:10:37 +0000 |
|---|---|---|
| committer | Richard M. Stallman | 2003-08-06 01:10:37 +0000 |
| commit | 91cbc31fa9fd6df416f499fc89c4114979c5b12e (patch) | |
| tree | 1ff539fefe0e9c1358940ebb0e75d35f47a7d5c8 | |
| parent | 10b6c9320f8c37bb4258841f2e5dcbb5ff72887b (diff) | |
| download | emacs-91cbc31fa9fd6df416f499fc89c4114979c5b12e.tar.gz emacs-91cbc31fa9fd6df416f499fc89c4114979c5b12e.zip | |
(noreturn): Report error if does return.
(testcover-reinstrument-clauses): Doc fix.
| -rw-r--r-- | lisp/emacs-lisp/testcover.el | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/lisp/emacs-lisp/testcover.el b/lisp/emacs-lisp/testcover.el index d422a42374b..8826a22e237 100644 --- a/lisp/emacs-lisp/testcover.el +++ b/lisp/emacs-lisp/testcover.el | |||
| @@ -334,8 +334,8 @@ always be nil, so we return t for 1-valued." | |||
| 334 | result)) | 334 | result)) |
| 335 | 335 | ||
| 336 | (defun testcover-reinstrument-clauses (clauselist) | 336 | (defun testcover-reinstrument-clauses (clauselist) |
| 337 | "Reinstruments each list in CLAUSELIST. Result is t if every | 337 | "Reinstrument each list in CLAUSELIST. |
| 338 | clause is 1-valued." | 338 | Result is t if every clause is 1-valued." |
| 339 | (let ((result t)) | 339 | (let ((result t)) |
| 340 | (mapc #'(lambda (x) | 340 | (mapc #'(lambda (x) |
| 341 | (setq result (and (testcover-reinstrument-list x) result))) | 341 | (setq result (and (testcover-reinstrument-list x) result))) |
| @@ -349,13 +349,13 @@ clause is 1-valued." | |||
| 349 | (eval-buffer buf t))) | 349 | (eval-buffer buf t))) |
| 350 | 350 | ||
| 351 | (defmacro 1value (form) | 351 | (defmacro 1value (form) |
| 352 | "For code-coverage testing, indicate that FORM is expected to always have | 352 | "For coverage testing, indicate FORM should always have the same value." |
| 353 | the same value." | ||
| 354 | form) | 353 | form) |
| 355 | 354 | ||
| 356 | (defmacro noreturn (form) | 355 | (defmacro noreturn (form) |
| 357 | "For code-coverage testing, indicate that FORM will always signal an error." | 356 | "For coverage testing, indicate that FORM will never return." |
| 358 | form) | 357 | `(prog1 ,form |
| 358 | (error "Form marked with `noreturn' did return"))) | ||
| 359 | 359 | ||
| 360 | 360 | ||
| 361 | ;;;========================================================================= | 361 | ;;;========================================================================= |