[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Emacs-diffs] master a52661b 05/14: Add missing test cases to auth-sourc
From: |
Nicolas Petton |
Subject: |
[Emacs-diffs] master a52661b 05/14: Add missing test cases to auth-source-pass-tests.el |
Date: |
Tue, 5 Jun 2018 09:53:56 -0400 (EDT) |
branch: master
commit a52661b58bc9cffa13cb5f0749cdb3a4c24fbf74
Author: Damien Cassou <address@hidden>
Commit: Nicolas Petton <address@hidden>
Add missing test cases to auth-source-pass-tests.el
* test/lisp/auth-source-pass-tests.el
(auth-source-pass-build-result-passes-full-host-to-find-match): Add
missing test cases.
---
test/lisp/auth-source-pass-tests.el | 8 +++++++-
1 file changed, 7 insertions(+), 1 deletion(-)
diff --git a/test/lisp/auth-source-pass-tests.el
b/test/lisp/auth-source-pass-tests.el
index 2ddbcab..6d471f4 100644
--- a/test/lisp/auth-source-pass-tests.el
+++ b/test/lisp/auth-source-pass-tests.el
@@ -209,7 +209,13 @@ This function is intended to be set to
`auth-source-debug`."
(cl-letf (((symbol-function 'auth-source-pass--find-match)
(lambda (host _user) (setq passed-host host))))
(auth-source-pass--build-result "https://address@hidden:123" nil nil)
- (should (equal passed-host "https://address@hidden:123")))))
+ (should (equal passed-host "https://address@hidden:123"))
+ (auth-source-pass--build-result "https://address@hidden" nil nil)
+ (should (equal passed-host "https://address@hidden"))
+ (auth-source-pass--build-result "address@hidden" nil nil)
+ (should (equal passed-host "address@hidden"))
+ (auth-source-pass--build-result "address@hidden:443" nil nil)
+ (should (equal passed-host "address@hidden:443")))))
(ert-deftest auth-source-pass-only-return-entries-that-can-be-open ()
(cl-letf (((symbol-function 'auth-source-pass-entries)
- [Emacs-diffs] master updated (7c1fa17 -> 5d23382), Nicolas Petton, 2018/06/05
- [Emacs-diffs] master 59d44b5 02/14: * test/lisp/auth-source-pass-tests.el: Add assertions for host:port, Nicolas Petton, 2018/06/05
- [Emacs-diffs] master a6b1cb0 01/14: * lisp/auth-source-pass.el: Fix headers., Nicolas Petton, 2018/06/05
- [Emacs-diffs] master 53f044c 03/14: Fix indentation in auth-source-pass-tests.el, Nicolas Petton, 2018/06/05
- [Emacs-diffs] master 5b31e6d 04/14: Add a test to auth-source-pass-tests.el, Nicolas Petton, 2018/06/05
- [Emacs-diffs] master a52661b 05/14: Add missing test cases to auth-source-pass-tests.el,
Nicolas Petton <=
- [Emacs-diffs] master 7b2d475 09/14: * lisp/auth-source-pass.el: Update version to 3.0.0, Nicolas Petton, 2018/06/05
- [Emacs-diffs] master 1d2551f 07/14: Fix auth-source-pass.el to properly handle special inputs, Nicolas Petton, 2018/06/05
- [Emacs-diffs] master a6cbdd4 11/14: * lisp/auth-source-pass.el: Update version to 4.0.0, Nicolas Petton, 2018/06/05
- [Emacs-diffs] master 5d23382 14/14: * lisp/auth-source-pass.el: Update version to 4.0.1, Nicolas Petton, 2018/06/05
- [Emacs-diffs] master 24cbb65 08/14: Silence byte compiler warning in auth-source-pass, Nicolas Petton, 2018/06/05
- [Emacs-diffs] master a613326 10/14: Fix prefix messages of auth-source-pass debug messages, Nicolas Petton, 2018/06/05
- [Emacs-diffs] master 03c50fc 12/14: Make sure auth-source-pass is compatible with Emacs 25, Nicolas Petton, 2018/06/05
- [Emacs-diffs] master 47ccee2 13/14: Test checking that auth-source-pass backend is correctly installed, Nicolas Petton, 2018/06/05
- [Emacs-diffs] master b43ed61 06/14: auth-source-pass: Take care of matching hosts when port is provided, Nicolas Petton, 2018/06/05