[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[nongnu] elpa/buttercup f565eda 157/340: Extract super-struct buttercup-
From: |
ELPA Syncer |
Subject: |
[nongnu] elpa/buttercup f565eda 157/340: Extract super-struct buttercup-suite-or-spec |
Date: |
Thu, 16 Dec 2021 14:59:24 -0500 (EST) |
branch: elpa/buttercup
commit f565edaf82bc413897c4f60c9a0c229d2a6dc4e1
Author: Ola Nilsson <ola.nilsson@gmail.com>
Commit: Jorgen Schäfer <Jorgen.Schaefer@gmail.com>
Extract super-struct buttercup-suite-or-spec
---
buttercup.el | 32 +++++++++++++-------------------
1 file changed, 13 insertions(+), 19 deletions(-)
diff --git a/buttercup.el b/buttercup.el
index f555567..be87a5c 100644
--- a/buttercup.el
+++ b/buttercup.el
@@ -661,37 +661,31 @@ See also `buttercup-define-matcher'."
;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
;;; Suite and spec data structures
-(cl-defstruct buttercup-suite
+(cl-defstruct buttercup-suite-or-spec
;; The name of this specific suite
description
- ;; Any children of this suite, both suites and specs
- children
;; The parent of this suite, another suite
parent
+ ;; One of: passed failed pending
+ (status 'passed)
+ failure-description
+ failure-stack
+ )
+
+(cl-defstruct (buttercup-suite (:include buttercup-suite-or-spec))
+ ;; Any children of this suite, both suites and specs
+ children
;; Closure to run before and after each spec in this suite and its
;; children
before-each
after-each
;; Likewise, but before and after all specs.
before-all
- after-all
- ;; These are set if there are errors in after-all.
- ;; One of: passed failed pending
- (status 'passed)
- failure-description
- failure-stack)
+ after-all)
-(cl-defstruct buttercup-spec
- ;; The description of the it form this was generated from
- description
- ;; The suite this spec is a member of
- parent
+(cl-defstruct (buttercup-spec (:include buttercup-suite-or-spec))
;; The closure to run for this spec
- function
- ;; One of: passed failed pending
- (status 'passed)
- failure-description
- failure-stack)
+ function)
(defun buttercup-suite-add-child (parent child)
"Add a CHILD suite to a PARENT suite."
- [nongnu] elpa/buttercup 0124cc4 129/340: Signal an error when ":to-throw" is used on a non-function (#97), (continued)
- [nongnu] elpa/buttercup 0124cc4 129/340: Signal an error when ":to-throw" is used on a non-function (#97), ELPA Syncer, 2021/12/16
- [nongnu] elpa/buttercup 31e765b 142/340: Do not suppress errors while loading test files, ELPA Syncer, 2021/12/16
- [nongnu] elpa/buttercup bc13b53 183/340: Merge pull request #133 from snogge/fix-specs-in-pending-suites, ELPA Syncer, 2021/12/16
- [nongnu] elpa/buttercup ca3ba8e 185/340: Merge pull request #130 from snogge/travis-update, ELPA Syncer, 2021/12/16
- [nongnu] elpa/buttercup d6cf530 072/340: Clean up the interactive reporter., ELPA Syncer, 2021/12/16
- [nongnu] elpa/buttercup 68c5ef5 076/340: Only load .el files during discovery., ELPA Syncer, 2021/12/16
- [nongnu] elpa/buttercup 14718c0 081/340: Use the new Travis infrastructure, ELPA Syncer, 2021/12/16
- [nongnu] elpa/buttercup d00c164 083/340: Display description for pending specs, ELPA Syncer, 2021/12/16
- [nongnu] elpa/buttercup ad901b5 149/340: Do not modify global match data in matchers, ELPA Syncer, 2021/12/16
- [nongnu] elpa/buttercup c1187b3 152/340: Extract function buttercup-suites-total-spces-status, ELPA Syncer, 2021/12/16
- [nongnu] elpa/buttercup f565eda 157/340: Extract super-struct buttercup-suite-or-spec,
ELPA Syncer <=
- [nongnu] elpa/buttercup 0c1dcda 161/340: Fix docstring of buttercup--specs-and-suite, ELPA Syncer, 2021/12/16
- [nongnu] elpa/buttercup 8d27bb9 169/340: Bump version: 1.10 → 1.11, ELPA Syncer, 2021/12/16
- [nongnu] elpa/buttercup 45f40c7 174/340: Restore obsoletion version for buttercup-*-parents, ELPA Syncer, 2021/12/16
- [nongnu] elpa/buttercup d7ab592 080/340: Bump version: 1.1 → 1.2, ELPA Syncer, 2021/12/16
- [nongnu] elpa/buttercup e1f71ac 086/340: Bump version: 1.3 → 1.4, ELPA Syncer, 2021/12/16
- [nongnu] elpa/buttercup 673f84d 087/340: Add assume form to cancel tests if conditions fail, ELPA Syncer, 2021/12/16
- [nongnu] elpa/buttercup 2aa840c 088/340: Merge pull request #40 from lunaryorn/assume-form, ELPA Syncer, 2021/12/16
- [nongnu] elpa/buttercup 6c11d8e 097/340: Debian and Ubuntu installation instructions, ELPA Syncer, 2021/12/16
- [nongnu] elpa/buttercup ae606fc 153/340: Set failure description to empty string for pending specs, ELPA Syncer, 2021/12/16
- [nongnu] elpa/buttercup 34e12fd 154/340: Get rid of 60 compile-time warnings out of 97, ELPA Syncer, 2021/12/16