optimize matcher

This commit is contained in:
wjqserver 2025-06-09 23:30:39 +08:00
parent 5dde21a403
commit 8d5b764ec7
2 changed files with 117 additions and 90 deletions

View file

@ -68,6 +68,12 @@ func TestMatcher_Compatibility(t *testing.T) {
config: cfgWithAuth,
expectedUser: "owner", expectedRepo: "repo", expectedMatcher: "clone",
},
{
name: "Girhub Broken Path",
rawPath: "https://github.com/owner",
config: cfgWithAuth,
expectError: true, expectedErrCode: 400,
},
{
name: "RawGHUserContent Path",