[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[nongnu] elpa/buttercup b574cb2 331/340: test: Fix byte compiler errors
From: |
ELPA Syncer |
Subject: |
[nongnu] elpa/buttercup b574cb2 331/340: test: Fix byte compiler errors and warnings |
Date: |
Thu, 16 Dec 2021 15:00:01 -0500 (EST) |
branch: elpa/buttercup
commit b574cb23f1c39c32a79186fc373c73c0d7b6c2b3
Author: Ola Nilsson <ola.nilsson@gmail.com>
Commit: Ola Nilsson <ola.nilsson@gmail.com>
test: Fix byte compiler errors and warnings
---
tests/test-buttercup.el | 19 +++++++++----------
1 file changed, 9 insertions(+), 10 deletions(-)
diff --git a/tests/test-buttercup.el b/tests/test-buttercup.el
index 1ab60d1..19cc1a4 100644
--- a/tests/test-buttercup.el
+++ b/tests/test-buttercup.el
@@ -28,6 +28,7 @@
(require 'ansi-color)
(require 'ert)
(require 'cl-lib)
+(require 'imenu)
(defun make-list-of-closures (items)
"For each element of ITEMS, return a closure returning it."
@@ -55,9 +56,7 @@ variables:
extra-vars)
(while (plist-member keys (car body))
(push (list (plist-get keys (pop body)) (pop body)) extra-vars))
- `(let (buttercup--after-all
- buttercup--after-each
- buttercup--before-all
+ `(let (buttercup--after-each
buttercup--before-each
(buttercup--cleanup-functions :invalid)
buttercup--current-suite
@@ -303,7 +302,7 @@ text properties using `ansi-color-apply'."
(buttercup-suite-add-child grandparent parent)
(buttercup-suite-add-child parent child)
- (expect (buttercup-suite-parents child)
+ (expect (buttercup-suite-or-spec-parents child)
:to-equal
(list parent grandparent)))))
@@ -315,7 +314,7 @@ text properties using `ansi-color-apply'."
(buttercup-suite-add-child grandparent parent)
(buttercup-suite-add-child parent child)
- (expect (buttercup-spec-parents child)
+ (expect (buttercup-suite-or-spec-parents child)
:to-equal
(list parent grandparent)))))
@@ -840,7 +839,7 @@ text properties using `ansi-color-apply'."
(let ((suite (describe "A bad spy scope"
(before-all
(spy-on 'some-function)))))
- (expect (run--suite suite)
+ (expect (buttercup--run-suite suite)
:to-throw))))
(it "used directly in describe"
(with-local-buttercup
@@ -1295,9 +1294,9 @@ text properties using `ansi-color-apply'."
(before-each
(setq defined-specs 10 pending-specs 0 failed-specs 0)
- (spy-on 'buttercup-suites-total-specs-defined :and-call-fake (lambda
(&rest a) defined-specs))
- (spy-on 'buttercup-suites-total-specs-pending :and-call-fake (lambda
(&rest a) pending-specs))
- (spy-on 'buttercup-suites-total-specs-failed :and-call-fake (lambda
(&rest a) failed-specs)))
+ (spy-on 'buttercup-suites-total-specs-defined :and-call-fake (lambda
(&rest _) defined-specs))
+ (spy-on 'buttercup-suites-total-specs-pending :and-call-fake (lambda
(&rest _) pending-specs))
+ (spy-on 'buttercup-suites-total-specs-failed :and-call-fake (lambda
(&rest _) failed-specs)))
(it "should print a summary of run and failing specs"
(setq failed-specs 6)
@@ -1868,7 +1867,7 @@ text properties using `ansi-color-apply'."
:var (el-time elc-time)
(before-each
(spy-on 'file-attributes :and-call-fake
- (lambda (filename &optional id-format)
+ (lambda (filename &optional _id-format)
(make-list
10
(make-list 4
- [nongnu] elpa/buttercup c9addd5 307/340: Lift spec-done handling into buttercup-reporter-batch, (continued)
- [nongnu] elpa/buttercup c9addd5 307/340: Lift spec-done handling into buttercup-reporter-batch, ELPA Syncer, 2021/12/16
- [nongnu] elpa/buttercup d6de872 309/340: Improve buttercup-reporter-batch--print-failed-spec-report, ELPA Syncer, 2021/12/16
- [nongnu] elpa/buttercup 392b99c 310/340: Extend batch reporters to optionally print sparse reports, ELPA Syncer, 2021/12/16
- [nongnu] elpa/buttercup f6ab784 315/340: test: Test on GNU Emacs 27.1, ELPA Syncer, 2021/12/16
- [nongnu] elpa/buttercup 4d974d2 319/340: Use correct function for --stale-file-error, ELPA Syncer, 2021/12/16
- [nongnu] elpa/buttercup a37d1a0 325/340: Fix compilation warning about undefined variable., ELPA Syncer, 2021/12/16
- [nongnu] elpa/buttercup b4e0986 333/340: Merge pull request #194 from doublep/eldev-doc, ELPA Syncer, 2021/12/16
- [nongnu] elpa/buttercup 108d229 340/340: Fix property comparisons in unit tests., ELPA Syncer, 2021/12/16
- [nongnu] elpa/buttercup dacfacc 332/340: Recognize buttercup--mark-stackframe in buttercup--enclosed-expr, ELPA Syncer, 2021/12/16
- [nongnu] elpa/buttercup bd55e2b 330/340: Add stacktrace style `omit`, ELPA Syncer, 2021/12/16
- [nongnu] elpa/buttercup b574cb2 331/340: test: Fix byte compiler errors and warnings,
ELPA Syncer <=
- [nongnu] elpa/buttercup 9e1c5c9 329/340: test: Add tests for backtrace prints, ELPA Syncer, 2021/12/16
- [nongnu] elpa/buttercup 1de6be4 339/340: Bump version: 1.23 → 1.24, ELPA Syncer, 2021/12/16
- [nongnu] elpa/buttercup 8b3f7a0 336/340: Merge pull request #199 from wasamasa/print-args-as-sexp, ELPA Syncer, 2021/12/16
- [nongnu] elpa/buttercup 3a0a58f 065/340: Test buttercup--print., ELPA Syncer, 2021/12/16
- [nongnu] elpa/buttercup e6fd5f5 096/340: Track pending specs separately, ELPA Syncer, 2021/12/16