Function: make-ert-test-failed--cmacro
make-ert-test-failed--cmacro is a function defined in ert.el.gz.
Signature
(make-ert-test-failed--cmacro CL-WHOLE &cl-quote &key MESSAGES SHOULD-FORMS DURATION CONDITION BACKTRACE INFOS)
Documentation
compiler-macro for inlining make-ert-test-failed.
Source Code
;; Defined in /usr/src/emacs/lisp/emacs-lisp/ert.el.gz
;; Closure converted to defun by helpful.
(defun make-ert-test-failed--cmacro
(cl-whole &rest --cl-rest--)
"compiler-macro for inlining `make-ert-test-failed'.\n\n\\(fn CL-WHOLE &cl-quote &key MESSAGES SHOULD-FORMS DURATION CONDITION BACKTRACE INFOS)"
(let*
((messages
(car
(cdr
(plist-member --cl-rest-- ':messages))))
(should-forms
(car
(cdr
(plist-member --cl-rest-- ':should-forms))))
(duration
(car
(cdr
(or
(plist-member --cl-rest-- ':duration)
'(nil 0)))))
(condition
(car
(cdr
(or
(plist-member --cl-rest-- ':condition)
'(nil
(cl-assert nil))))))
(backtrace
(car
(cdr
(or
(plist-member --cl-rest-- ':backtrace)
'(nil
(cl-assert nil))))))
(infos
(car
(cdr
(or
(plist-member --cl-rest-- ':infos)
'(nil
(cl-assert nil)))))))
(progn
(let
((--cl-keys-- --cl-rest--))
(while --cl-keys--
(cond
((memq
(car --cl-keys--)
'(:messages :should-forms :duration :condition :backtrace :infos :allow-other-keys))
(unless
(cdr --cl-keys--)
(error "Missing argument for %s"
(car --cl-keys--)))
(setq --cl-keys--
(cdr
(cdr --cl-keys--))))
((car
(cdr
(memq ':allow-other-keys --cl-rest--)))
(setq --cl-keys-- nil))
(t
(error "Keyword argument %s not one of (:messages :should-forms :duration :condition :backtrace :infos)"
(car --cl-keys--))))))
(cl-block make-ert-test-failed--cmacro
(cl--defsubst-expand
'(messages should-forms duration condition backtrace infos)
'(cl-block make-ert-test-failed
(record 'ert-test-failed messages should-forms duration condition backtrace infos))
nil cl-whole nil messages should-forms duration condition backtrace infos)))))