comparison lisp/emacs-lisp/testcover.el @ 88123:375f2633d815

New directory
author Kenichi Handa <handa@m17n.org>
date Mon, 08 Sep 2003 11:56:09 +0000
parents 695cf19ef79e
children 68c22ea6027c
comparison
equal deleted inserted replaced
52428:27bc8b966642 88123:375f2633d815
332 (while (consp list) 332 (while (consp list)
333 (setq result (testcover-reinstrument (pop list)))) 333 (setq result (testcover-reinstrument (pop list))))
334 result)) 334 result))
335 335
336 (defun testcover-reinstrument-clauses (clauselist) 336 (defun testcover-reinstrument-clauses (clauselist)
337 "Reinstrument each list in CLAUSELIST. 337 "Reinstruments each list in CLAUSELIST. Result is t if every
338 Result is t if every clause is 1-valued." 338 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)))
342 clauselist) 342 clauselist)
343 result)) 343 result))
347 (interactive "b") 347 (interactive "b")
348 (let ((buf (find-file-noselect buffer))) 348 (let ((buf (find-file-noselect buffer)))
349 (eval-buffer buf t))) 349 (eval-buffer buf t)))
350 350
351 (defmacro 1value (form) 351 (defmacro 1value (form)
352 "For coverage testing, indicate FORM should always have the same value." 352 "For code-coverage testing, indicate that FORM is expected to always have
353 the same value."
353 form) 354 form)
354 355
355 (defmacro noreturn (form) 356 (defmacro noreturn (form)
356 "For coverage testing, indicate that FORM will never return." 357 "For code-coverage testing, indicate that FORM will always signal an error."
357 `(prog1 ,form 358 form)
358 (error "Form marked with `noreturn' did return")))
359 359
360 360
361 ;;;========================================================================= 361 ;;;=========================================================================
362 ;;; Accumulate coverage data 362 ;;; Accumulate coverage data
363 ;;;========================================================================= 363 ;;;=========================================================================
443 "Moves point to next line in current buffer that has a splotch." 443 "Moves point to next line in current buffer that has a splotch."
444 (interactive) 444 (interactive)
445 (goto-char (next-overlay-change (point))) 445 (goto-char (next-overlay-change (point)))
446 (end-of-line)) 446 (end-of-line))
447 447
448 ;;; arch-tag: 72324a4a-4a2e-4142-9249-cc56d6757588
449 ;; testcover.el ends here. 448 ;; testcover.el ends here.