[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[elpa] externals/ssh-deploy 0b43ceb 048/133: Added unit tests for get-re
From: |
Stefan Monnier |
Subject: |
[elpa] externals/ssh-deploy 0b43ceb 048/133: Added unit tests for get-revision-path and is-not-empty-string |
Date: |
Sat, 27 Mar 2021 14:48:41 -0400 (EDT) |
branch: externals/ssh-deploy
commit 0b43ceba756ba63d3b39f0e83876cf299fe671b0
Author: Christian Johansson <christian@cvj.se>
Commit: Christian Johansson <christian@cvj.se>
Added unit tests for get-revision-path and is-not-empty-string
---
ssh-deploy-test.el | 19 ++++++++++++++++++-
1 file changed, 18 insertions(+), 1 deletion(-)
diff --git a/ssh-deploy-test.el b/ssh-deploy-test.el
index d0cffbc..043673a 100644
--- a/ssh-deploy-test.el
+++ b/ssh-deploy-test.el
@@ -37,10 +37,19 @@
;;; Code:
+(autoload 'should "ert")
+
(autoload 'ssh-deploy-diff-mode "ssh-deploy-diff-mode")
+
(autoload 'ssh-deploy "ssh-deploy")
+(autoload 'ssh-deploy--get-revision-path "ssh-deploy")
(autoload 'ssh-deploy--file-is-in-path "ssh-deploy")
-(autoload 'should "ert")
+(autoload 'ssh-deploy--is-not-empty-string "ssh-deploy")
+
+(defun ssh-deploy-test--get-revision-path ()
+ "Test this function."
+ (should (string= (expand-file-name "./_mydirectory_random-file.txt")
(ssh-deploy--get-revision-path "/mydirectory/random-file.txt" (expand-file-name
"."))))
+ )
(defun ssh-deploy-test--file-is-in-path ()
"Test this function."
@@ -49,10 +58,18 @@
(should (equal nil (ssh-deploy--file-is-in-path "/mydirectory2/test.txt"
"/mydirectory/")))
)
+(defun ssh-deploy-test--is-not-empty-string ()
+ "Test this function."
+ (should (equal t (ssh-deploy--is-not-empty-string "abc")))
+ (should (equal nil (ssh-deploy--is-not-empty-string "")))
+ (should (equal nil (ssh-deploy--is-not-empty-string nil)))
+ )
(defun ssh-deploy-tests ()
"Run test for plug-in."
+ (ssh-deploy-test--get-revision-path)
(ssh-deploy-test--file-is-in-path)
+ (ssh-deploy-test--is-not-empty-string)
)
(ssh-deploy-tests)
- [elpa] externals/ssh-deploy afbcc70 030/133: mode-line now shows whether current file is under deployment, (continued)
- [elpa] externals/ssh-deploy afbcc70 030/133: mode-line now shows whether current file is under deployment, Stefan Monnier, 2021/03/27
- [elpa] externals/ssh-deploy 0e7c608 031/133: Deployment menu only shows when current buffer is deployment, Stefan Monnier, 2021/03/27
- [elpa] externals/ssh-deploy 8dadac5 032/133: Made menu-bar feature optional, Stefan Monnier, 2021/03/27
- [elpa] externals/ssh-deploy b409812 033/133: Started on implementing changes to diff-mode, Stefan Monnier, 2021/03/27
- [elpa] externals/ssh-deploy 13dcacb 034/133: More cosmetic changes to diff mode, Stefan Monnier, 2021/03/27
- [elpa] externals/ssh-deploy 4268c8b 035/133: Fixed bug with constant definition, Stefan Monnier, 2021/03/27
- [elpa] externals/ssh-deploy 7be2881 038/133: Fixed proper symbols for actions, Stefan Monnier, 2021/03/27
- [elpa] externals/ssh-deploy 3c5fe09 037/133: More work on diff mode cosmetic changes, Stefan Monnier, 2021/03/27
- [elpa] externals/ssh-deploy 95a932a 047/133: Started on unit-tests, Stefan Monnier, 2021/03/27
- [elpa] externals/ssh-deploy 0b43ceb 048/133: Added unit tests for get-revision-path and is-not-empty-string,
Stefan Monnier <=
- [elpa] externals/ssh-deploy 4ff27e9 049/133: Minor modifications after suggestions from flycheck-package, Stefan Monnier, 2021/03/27
- [elpa] externals/ssh-deploy 5871711 052/133: Renamed TRAMP to Tramp and added link to lisp code style, Stefan Monnier, 2021/03/27
- [elpa] externals/ssh-deploy e834379 053/133: Updated version, Stefan Monnier, 2021/03/27
- [elpa] externals/ssh-deploy 2388c00 056/133: Added -p suffix to predicate functions, Stefan Monnier, 2021/03/27
- [elpa] externals/ssh-deploy bc93b81 057/133: Updated version, Stefan Monnier, 2021/03/27
- [elpa] externals/ssh-deploy 4c5b82a 062/133: Added hydra application as shortcut, Stefan Monnier, 2021/03/27
- [elpa] externals/ssh-deploy 0e98d8e 046/133: Removed unnecessary group, Stefan Monnier, 2021/03/27
- [elpa] externals/ssh-deploy c7407ef 069/133: Using (kill-buffer) instead of reverting default-directory in unit tests, Stefan Monnier, 2021/03/27
- [elpa] externals/ssh-deploy d9f61e1 071/133: Resolved byte-compilation with optional hydra feature, Stefan Monnier, 2021/03/27
- [elpa] externals/ssh-deploy f2cdb1a 077/133: Started on asynchronous tests, Stefan Monnier, 2021/03/27