mirror of
https://github.com/appleboy/drone-scp.git
synced 2026-06-04 10:15:05 +08:00
test: refactor test function names for clarity
- Change function name from `trimPath` to `trimValues` in `TestTrimElement` test Signed-off-by: Bo-Yi.Wu <appleboy.tw@gmail.com>
This commit is contained in:
+2
-2
@@ -74,12 +74,12 @@ func TestTrimElement(t *testing.T) {
|
||||
input = []string{"1", " ", "3"}
|
||||
result = []string{"1", "3"}
|
||||
|
||||
assert.Equal(t, result, trimPath(input))
|
||||
assert.Equal(t, result, trimValues(input))
|
||||
|
||||
input = []string{"1", "2"}
|
||||
result = []string{"1", "2"}
|
||||
|
||||
assert.Equal(t, result, trimPath(input))
|
||||
assert.Equal(t, result, trimValues(input))
|
||||
}
|
||||
|
||||
func TestSCPFileFromPublicKey(t *testing.T) {
|
||||
|
||||
Reference in New Issue
Block a user