MCPcopy Index your code
hub / github.com/apache/devlake / testGithubConnAppKeyAuth

Function testGithubConnAppKeyAuth

backend/plugins/github/api/connection_api.go:323–330  ·  view source on GitHub ↗
(ctx context.Context, conn models.GithubConn)

Source from the content-addressed store, hash-verified

321}
322
323func testGithubConnAppKeyAuth(ctx context.Context, conn models.GithubConn) (*GitHubTestConnResult, error) {
324 // AppKey can only have one secretKey, can shouldn't have tokens.
325 conn.Token = ""
326 // I think connection with InstallationID needs another test
327 // But it's to be determined. So just ignore it temporarily.
328 conn.InstallationID = 0
329 return getInstallationsWithGithubConnAppKeyAuth(ctx, conn)
330}
331
332func testExistingConnection(ctx context.Context, conn models.GithubConn) (*GithubMultiTestConnResponse, errors.Error) {
333 if vld != nil {

Callers 2

testConnectionFunction · 0.85
testExistingConnectionFunction · 0.85

Tested by

no test coverage detected