[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[nongnu] elpa/buttercup 48a81c6bda 6/9: Add docstrings for the spy match
From: |
ELPA Syncer |
Subject: |
[nongnu] elpa/buttercup 48a81c6bda 6/9: Add docstrings for the spy matchers |
Date: |
Wed, 21 Feb 2024 18:59:25 -0500 (EST) |
branch: elpa/buttercup
commit 48a81c6bdaaf6d1b6da03b412bb6d04b6ecf2cc0
Author: Ola Nilsson <ola.nilsson@gmail.com>
Commit: Ola Nilsson <ola.nilsson@gmail.com>
Add docstrings for the spy matchers
---
buttercup.el | 3 +++
1 file changed, 3 insertions(+)
diff --git a/buttercup.el b/buttercup.el
index 8c0f381369..8b25ed4f00 100644
--- a/buttercup.el
+++ b/buttercup.el
@@ -718,12 +718,14 @@ UNEVALUATED-EXPR if it did not raise any signal."
thrown-signal expected-signal))))))
(buttercup-define-matcher :to-have-been-called (spy)
+ "Check that SPY have been called at least once."
(cl-assert (symbolp (funcall spy)))
(if (spy-calls-all (funcall spy))
t
nil))
(buttercup-define-matcher :to-have-been-called-with (spy &rest args)
+ "Check that SPY has been called at least once with arguments ARGS."
(setq spy (funcall spy))
(cl-assert (symbolp spy))
(setq args (mapcar #'funcall args))
@@ -745,6 +747,7 @@ UNEVALUATED-EXPR if it did not raise any signal."
t))))
(buttercup-define-matcher :to-have-been-called-times (spy number)
+ "Check that SPY has been called exactly NUMBER times."
(setq spy (funcall spy)
number (funcall number))
(cl-assert (symbolp spy))
- [nongnu] elpa/buttercup updated (24d43b2ce2 -> f2f7f81a83), ELPA Syncer, 2024/02/21
- [nongnu] elpa/buttercup 25924eb0a3 5/9: Merge branch 'improved-throw-messages', ELPA Syncer, 2024/02/21
- [nongnu] elpa/buttercup 21c2260c8f 7/9: test: Correct wording of some matcher tests, ELPA Syncer, 2024/02/21
- [nongnu] elpa/buttercup f2f7f81a83 9/9: Improve fail message for the :to-have-been-called-times matcher, ELPA Syncer, 2024/02/21
- [nongnu] elpa/buttercup 26c090b7ff 2/9: Separate the :to-throw failure types to enable better messages, ELPA Syncer, 2024/02/21
- [nongnu] elpa/buttercup f967fdfc1f 1/9: Use the ert-explainer to check signal args equality in :to-throw, ELPA Syncer, 2024/02/21
- [nongnu] elpa/buttercup c32a74bc28 3/9: Use the explained diffence for the diffing args case, ELPA Syncer, 2024/02/21
- [nongnu] elpa/buttercup 8595bd91ee 4/9: Move quotes into the format handlers in buttercup--handle-to-throw, ELPA Syncer, 2024/02/21
- [nongnu] elpa/buttercup 48a81c6bda 6/9: Add docstrings for the spy matchers,
ELPA Syncer <=
- [nongnu] elpa/buttercup b18ab7fe22 8/9: test: Verify multiple argument matching for :have-been-called-with, ELPA Syncer, 2024/02/21