大量的更新

This commit is contained in:
zeaslity
2025-02-26 17:44:03 +08:00
parent b8170e00d4
commit c751c21871
8 changed files with 323 additions and 42 deletions

View File

@@ -0,0 +1,21 @@
package op
import (
"testing"
)
func TestGetLatestGithubReleaseVersion(t *testing.T) {
repoOwner := "docker"
repoName := "compose"
version, err := GetLatestGithubReleaseVersion(repoOwner, repoName)
if err != nil {
t.Fatalf("获取最新版本失败: %v", err)
}
if version == "" {
t.Error("获取的版本号为空")
}
t.Logf("获取到的最新版本号: %s", version)
}