mirror of
https://agent.ghink.cloud/ghinknet/richkago
synced 2025-04-02 03:08:57 +00:00
17 lines
385 B
Go
17 lines
385 B
Go
package richkago
|
|
|
|
import (
|
|
"testing"
|
|
)
|
|
|
|
// TestDownload test main download
|
|
func TestDownload(t *testing.T) {
|
|
controller := NewController()
|
|
|
|
_, _, err := Download("https://mirrors.tuna.tsinghua.edu.cn/github-release/git-for-windows/git/LatestRelease/Git-2.47.0.2-64-bit.exe", "Git-2.47.0.2-64-bit.exe", controller)
|
|
if err != nil {
|
|
t.Error("failed to download", err)
|
|
return
|
|
}
|
|
}
|