[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[nongnu] elpa/buttercup 5458dcc 158/340: Replace buttercup-*-parents wit
From: |
ELPA Syncer |
Subject: |
[nongnu] elpa/buttercup 5458dcc 158/340: Replace buttercup-*-parents with buttercup-suite-or-spec-parents |
Date: |
Thu, 16 Dec 2021 14:59:25 -0500 (EST) |
branch: elpa/buttercup
commit 5458dccf891f112ec1a951ae9dbe5e0bf5a4616c
Author: Ola Nilsson <ola.nilsson@gmail.com>
Commit: Jorgen Schäfer <Jorgen.Schaefer@gmail.com>
Replace buttercup-*-parents with buttercup-suite-or-spec-parents
---
buttercup.el | 27 +++++++++------------------
1 file changed, 9 insertions(+), 18 deletions(-)
diff --git a/buttercup.el b/buttercup.el
index be87a5c..9d43b3d 100644
--- a/buttercup.el
+++ b/buttercup.el
@@ -692,25 +692,16 @@ See also `buttercup-define-matcher'."
(setf (buttercup-suite-children parent)
(append (buttercup-suite-children parent)
(list child)))
- (if (buttercup-suite-p child)
- (setf (buttercup-suite-parent child)
- parent)
- (setf (buttercup-spec-parent child)
- parent)))
-
-(defun buttercup-suite-parents (suite)
- "Return a list of parents of SUITE."
- (if (buttercup-suite-parent suite)
- (cons (buttercup-suite-parent suite)
- (buttercup-suite-parents (buttercup-suite-parent suite)))
- nil))
+ (setf (buttercup-suite-or-spec-parent child) parent))
-(defun buttercup-spec-parents (spec)
- "Return a list of parents of SPEC."
- (if (buttercup-spec-parent spec)
- (cons (buttercup-spec-parent spec)
- (buttercup-suite-parents (buttercup-spec-parent spec)))
- nil))
+(defun buttercup-suite-or-spec-parents (suite-or-spec)
+ "Return a list of parents of SUITE-OR-SPEC."
+ (when (buttercup-suite-or-spec-parent suite-or-spec)
+ (cons (buttercup-suite-or-spec-parent suite-or-spec)
+ (buttercup-suite-or-spec-parents (buttercup-suite-or-spec-parent
suite-or-spec)))))
+
+(define-obsolete-function-alias 'buttercup-suite-parents
'buttercup-suite-or-spec-parents "emacs-buttercup 1.10")
+(define-obsolete-function-alias 'buttercup-spec-parents
'buttercup-suite-or-spec-parents "emacs-buttercup 1.10")
(defun buttercup-suites-total-specs-defined (suite-list)
"Return the number of specs defined in all suites in SUITE-LIST."
- [nongnu] elpa/buttercup b6deeff 128/340: Set Emacs 24.3 as minimum and clean outdated code (close #89), (continued)
- [nongnu] elpa/buttercup b6deeff 128/340: Set Emacs 24.3 as minimum and clean outdated code (close #89), ELPA Syncer, 2021/12/16
- [nongnu] elpa/buttercup 39c7d8c 132/340: Allow ERT "should" and similar to work with buttercup, ELPA Syncer, 2021/12/16
- [nongnu] elpa/buttercup e8140aa 133/340: Implement configurable stack traces, ELPA Syncer, 2021/12/16
- [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 <=
- [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, 2021/12/16
- [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