]> git.eshelyaron.com Git - emacs.git/commit
ert-with-function-mocked: New macro
authorMichal Nazarewicz <mina86@mina86.com>
Tue, 23 Feb 2016 03:44:56 +0000 (14:44 +1100)
committerLars Ingebrigtsen <larsi@gnus.org>
Tue, 23 Feb 2016 03:44:56 +0000 (14:44 +1100)
commit6f0498bf290cbe066036f8bfe0d09ad99ddaab03
tree391e4f25adbbe7d88e1f968bbef54ddeb1dcda84
parent96e32bbb736ec6e0a7278ae864098c7c812b05a4
ert-with-function-mocked: New macro

* lisp/emacs-lisp/ert-x.el (ert-with-function-mocked): New macro which
allows evaluating code while particular function is replaced with
a mock.  The original definition of said function is restored once the
macro finishes.
etc/NEWS
lisp/emacs-lisp/ert-x.el
test/lisp/emacs-lisp/ert-x-tests.el