Documentation
¶
Overview ¶
Package githubtest is an in-memory stand-in for the parts of GitHub's API that package github calls.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type Server ¶
type Server struct {
*httptest.Server
Mu sync.Mutex
// Token is the personal access token /user/repos accepts.
Token string
// AppKey verifies the JWTs an App signs, and Installation is the one
// installation it may get a token for.
AppKey *rsa.PublicKey
Installation string
// Repositories are what both listings return, in pages.
Repositories []*github.Repository
}
Server is a fake GitHub. Its fields may be read and changed between requests while holding Mu.
Click to show internal directories.
Click to hide internal directories.