[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[nongnu] elpa/buttercup bcaa7f0 163/340: Use buttercup--specs where poss
From: |
ELPA Syncer |
Subject: |
[nongnu] elpa/buttercup bcaa7f0 163/340: Use buttercup--specs where possible |
Date: |
Thu, 16 Dec 2021 14:59:26 -0500 (EST) |
branch: elpa/buttercup
commit bcaa7f0cd580e0d64462e95f429a08002044f991
Author: Ola Nilsson <ola.nilsson@gmail.com>
Commit: Jorgen Schäfer <Jorgen.Schaefer@gmail.com>
Use buttercup--specs where possible
Replace buttercup--specs-and-suites with buttercup--specs where
possible.
---
buttercup.el | 15 +++------------
1 file changed, 3 insertions(+), 12 deletions(-)
diff --git a/buttercup.el b/buttercup.el
index 54d54ba..d72b245 100644
--- a/buttercup.el
+++ b/buttercup.el
@@ -705,19 +705,11 @@ See also `buttercup-define-matcher'."
(defun buttercup-suites-total-specs-defined (suite-list)
"Return the number of specs defined in all suites in SUITE-LIST."
- (let ((nspecs 0))
- (dolist (spec-or-suite (buttercup--specs-and-suites suite-list))
- (when (buttercup-spec-p spec-or-suite)
- (setq nspecs (1+ nspecs))))
- nspecs))
+ (length (buttercup--specs suite-list)))
(defun buttercup-suites-total-specs-status (suite-list status)
"Return the number of specs in SUITE-LIST marked with STATUS."
- (let ((nspecs 0))
- (dolist (spec-or-suite (buttercup--specs-and-suites suite-list) nspecs)
- (when (and (buttercup-spec-p spec-or-suite)
- (eq (buttercup-spec-status spec-or-suite) status))
- (setq nspecs (1+ nspecs))))))
+ (cl-count status (buttercup--specs suite-list) :key #'buttercup-spec-status))
(defun buttercup-suites-total-specs-pending (suite-list)
"Return the number of specs marked as pending in all suites in SUITE-LIST."
@@ -766,8 +758,7 @@ See also `buttercup-define-matcher'."
(defun buttercup--full-spec-names (spec-or-suite-list)
"Return full names of all specs in SPEC-OR-SUITE-LIST."
(cl-loop
- for x in (buttercup--specs-and-suites spec-or-suite-list)
- if (buttercup-spec-p x)
+ for x in (buttercup--specs spec-or-suite-list)
collect (buttercup-spec-full-name x)))
(defun buttercup--find-duplicate-spec-names (spec-or-suite-list)
- [nongnu] elpa/buttercup e6f97d0 136/340: Release 1.8, (continued)
- [nongnu] elpa/buttercup e6f97d0 136/340: Release 1.8, ELPA Syncer, 2021/12/16
- [nongnu] elpa/buttercup e26ea54 137/340: Let spy-on :and-return-value work with lists and symbols (close #104), ELPA Syncer, 2021/12/16
- [nongnu] elpa/buttercup e55e3d8 138/340: travis: Test on 25.1 and 25.2, ELPA Syncer, 2021/12/16
- [nongnu] elpa/buttercup c032c8f 141/340: Exec code blocks in markdown labeled as "emacs-lisp" and "elisp", ELPA Syncer, 2021/12/16
- [nongnu] elpa/buttercup b97714d 144/340: Declare all variables before first use, ELPA Syncer, 2021/12/16
- [nongnu] elpa/buttercup 4128f3e 147/340: Document ERT support in writing-tests.md, ELPA Syncer, 2021/12/16
- [nongnu] elpa/buttercup 47dd72c 156/340: Set file local variables for consistent code style, ELPA Syncer, 2021/12/16
- [nongnu] elpa/buttercup 5458dcc 158/340: Replace buttercup-*-parents with buttercup-suite-or-spec-parents, ELPA Syncer, 2021/12/16
- [nongnu] elpa/buttercup 77367d3 165/340: Change shebang to use /usr/bin/env, ELPA Syncer, 2021/12/16
- [nongnu] elpa/buttercup bbbf692 166/340: Fix more compile warnings., ELPA Syncer, 2021/12/16
- [nongnu] elpa/buttercup bcaa7f0 163/340: Use buttercup--specs where possible,
ELPA Syncer <=
- [nongnu] elpa/buttercup 61ebe91 171/340: Update README.md, ELPA Syncer, 2021/12/16
- [nongnu] elpa/buttercup 39d625c 173/340: Bump version: 1.11 → 1.12, ELPA Syncer, 2021/12/16
- [nongnu] elpa/buttercup 6330610 176/340: Add more markdown running functions, ELPA Syncer, 2021/12/16
- [nongnu] elpa/buttercup 3d3aff9 178/340: Set file local code-style variables in test-buttercup.el, ELPA Syncer, 2021/12/16
- [nongnu] elpa/buttercup 553529f 181/340: Remove obsolete buttercup-xdescribe, ELPA Syncer, 2021/12/16
- [nongnu] elpa/buttercup 5821cd0 184/340: Merge pull request #131 from snogge/markdown, ELPA Syncer, 2021/12/16
- [nongnu] elpa/buttercup a394fea 191/340: Bump version: 1.13 → 1.14, ELPA Syncer, 2021/12/16
- [nongnu] elpa/buttercup 7cea4c6 192/340: Test buttercup-run, ELPA Syncer, 2021/12/16
- [nongnu] elpa/buttercup b410c78 193/340: Separate return code from reporter, ELPA Syncer, 2021/12/16
- [nongnu] elpa/buttercup 9b230dc 202/340: Fix the "should print the elapsed time for all specs" test, ELPA Syncer, 2021/12/16