This commit is contained in:
wjqserver 2025-07-31 20:01:03 +08:00
parent 44f28e593a
commit 208ce8a4f9
5 changed files with 80 additions and 72 deletions

View file

@ -33,11 +33,17 @@ func TestMatcher_Compatibility(t *testing.T) {
expectedErrCode int
}{
{
name: "GH Releases Path",
name: "GH Releases Path 1",
rawPath: "https://github.com/owner/repo/releases/download/v1.0/asset.zip",
config: cfgWithAuth,
expectedUser: "owner", expectedRepo: "repo", expectedMatcher: "releases",
},
{
name: "GH Releases Path 2",
rawPath: "https://github.com/owner/repo/releases/v1.0/download/asset.zip",
config: cfgWithAuth,
expectedUser: "owner", expectedRepo: "repo", expectedMatcher: "releases",
},
{
name: "GH Releases Path Page",
rawPath: "https://github.com/owner/repo/releases",