mirror of
https://github.com/appleboy/drone-telegram.git
synced 2026-06-04 10:14:50 +08:00
feat: Support wildcard attachment list (#62)
This commit is contained in:
+5
-2
@@ -206,14 +206,17 @@ func TestParseTo(t *testing.T) {
|
||||
assert.Equal(t, 0, len(ids))
|
||||
}
|
||||
|
||||
func TestCheckFileExist(t *testing.T) {
|
||||
func TestGlobList(t *testing.T) {
|
||||
var input []string
|
||||
var result []string
|
||||
|
||||
input = []string{"tests/gophercolor.png", "測試", "3"}
|
||||
result = []string{"tests/gophercolor.png"}
|
||||
assert.Equal(t, result, globList(input))
|
||||
|
||||
assert.Equal(t, result, fileExist(input))
|
||||
input = []string{"tests/*.mp3"}
|
||||
result = []string{"tests/audio.mp3"}
|
||||
assert.Equal(t, result, globList(input))
|
||||
}
|
||||
|
||||
func TestConvertLocation(t *testing.T) {
|
||||
|
||||
Reference in New Issue
Block a user