Documentation
¶
Overview ¶
Package githubtest is a test server of the parts of the GitHub REST API that package github uses, with repositories in memory.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Server ¶
type Server struct {
*httptest.Server
// Token, if set, is the token that the requests must have.
Token string
// Requests is the number of requests to the server, without
// those that are not modified, as for the rate limit.
Requests int
// contains filtered or unexported fields
}
Server is a test server of the GitHub REST API, as for a github.Client with [Server.URL] as its API. The repositories are made when they are first used, without commits.
func NewServer ¶
func NewServer() *Server
NewServer returns a new running test server, to be closed after use.
Click to show internal directories.
Click to hide internal directories.