File tree 4 files changed +44
-12
lines changed
4 files changed +44
-12
lines changed Original file line number Diff line number Diff line change 15
15
16
16
(defun syncthing-ert-cleanup ()
17
17
(should (eq nil syncthing--servers))
18
- (dolist (buf (buffer-list ))
19
- (unless (or (string-match-p (regexp-quote " *Messages*" ) (buffer-name buf)))
20
- (kill-buffer buf))))
18
+ (mapc
19
+ (lambda (buff )
20
+ (unless
21
+ (or (string-match-p (regexp-quote " *Messages*" ) (buffer-name buff))
22
+ (string-match-p (regexp-quote " *code-conversion-work*" )
23
+ (buffer-name buff))
24
+ (string-match-p (regexp-quote " *code-converting-work*" )
25
+ (buffer-name buff))
26
+ (string-match-p " syncthing.*\\ .el" (buffer-name buff)))
27
+ (kill-buffer buff)))
28
+ (buffer-list )))
21
29
22
30
(ert-deftest syncthing-alist-var-access ()
23
31
" Convert 'a' (string) to 'a (symbol) and access value with alist-get."
Original file line number Diff line number Diff line change 15
15
16
16
(defun syncthing-ert-cleanup ()
17
17
(should (eq nil syncthing--servers))
18
- (dolist (buf (buffer-list ))
19
- (unless (or (string-match-p (regexp-quote " *Messages*" ) (buffer-name buf)))
20
- (kill-buffer buf))))
18
+ (mapc
19
+ (lambda (buff )
20
+ (unless
21
+ (or (string-match-p (regexp-quote " *Messages*" ) (buffer-name buff))
22
+ (string-match-p (regexp-quote " *code-conversion-work*" )
23
+ (buffer-name buff))
24
+ (string-match-p (regexp-quote " *code-converting-work*" )
25
+ (buffer-name buff))
26
+ (string-match-p " syncthing.*\\ .el" (buffer-name buff)))
27
+ (kill-buffer buff)))
28
+ (buffer-list )))
21
29
22
30
(ert-deftest syncthing-keyboard-newline-apply ()
23
31
" Call widget's `:action' when `point' is on top of it."
Original file line number Diff line number Diff line change 15
15
16
16
(defun syncthing-ert-cleanup ()
17
17
(should (eq nil syncthing--servers))
18
- (dolist (buf (buffer-list ))
19
- (unless (or (string-match-p (regexp-quote " *Messages*" ) (buffer-name buf)))
20
- (kill-buffer buf))))
18
+ (mapc
19
+ (lambda (buff )
20
+ (unless
21
+ (or (string-match-p (regexp-quote " *Messages*" ) (buffer-name buff))
22
+ (string-match-p (regexp-quote " *code-conversion-work*" )
23
+ (buffer-name buff))
24
+ (string-match-p (regexp-quote " *code-converting-work*" )
25
+ (buffer-name buff))
26
+ (string-match-p " syncthing.*\\ .el" (buffer-name buff)))
27
+ (kill-buffer buff)))
28
+ (buffer-list )))
21
29
22
30
(ert-deftest syncthing-ping-failure ()
23
31
" Throw an auth error on bad token."
Original file line number Diff line number Diff line change 16
16
17
17
(defun syncthing-ert-cleanup ()
18
18
(should (eq nil syncthing--servers))
19
- (dolist (buf (buffer-list ))
20
- (unless (or (string-match-p (regexp-quote " *Messages*" ) (buffer-name buf)))
21
- (kill-buffer buf))))
19
+ (mapc
20
+ (lambda (buff )
21
+ (unless
22
+ (or (string-match-p (regexp-quote " *Messages*" ) (buffer-name buff))
23
+ (string-match-p (regexp-quote " *code-conversion-work*" )
24
+ (buffer-name buff))
25
+ (string-match-p (regexp-quote " *code-converting-work*" )
26
+ (buffer-name buff))
27
+ (string-match-p " syncthing.*\\ .el" (buffer-name buff)))
28
+ (kill-buffer buff)))
29
+ (buffer-list )))
22
30
23
31
(ert-deftest syncthing-run-customize ()
24
32
" Run `customize-variable' on missing API token."
You can’t perform that action at this time.
0 commit comments