Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var FakeGithubCfg = FakeGithubServerConfig{
AuthHandler: authHandler,
TokenHandler: tokenHandler,
ProfileHandler: profileHandler,
GetRepoHandler: getRepoHandler,
ListRepoHooksHandler: listRepoHooksHandler,
GetBranchHandler: getBranchHandler,
EmailHandler: emailHandler,
ListReposHandler: listReposHandler,
AddHookHandler: addHookHandler,
DeleteHookHandler: deleteHookHandler,
}
Functions ¶
func SendJSON ¶
func SendJSON(w http.ResponseWriter, obj interface{})
Types ¶
type App ¶
type App struct {
// contains filtered or unexported fields
}
func GetDefaultTestApp ¶
func GetDefaultTestApp() *App
func (*App) BuildCommonDeps ¶
func (ta *App) BuildCommonDeps() *CommonDeps
func (App) PurgeAnalyzesQueue ¶
type CommonDeps ¶
type FakeGithubServerConfig ¶
type FakeGithubServerConfig struct { AuthHandler http.HandlerFunc TokenHandler http.HandlerFunc ProfileHandler http.HandlerFunc GetRepoHandler http.HandlerFunc ListRepoHooksHandler http.HandlerFunc GetBranchHandler http.HandlerFunc EmailHandler http.HandlerFunc ListReposHandler http.HandlerFunc AddHookHandler http.HandlerFunc DeleteHookHandler http.HandlerFunc }
type Repo ¶
type Repo struct { returntypes.RepoInfo // contains filtered or unexported fields }
func (*Repo) ActivateFail ¶
func (r *Repo) ActivateFail()
func (*Repo) Deactivate ¶
func (r *Repo) Deactivate()
func (Repo) ExpectWebhook ¶
func (r Repo) ExpectWebhook(eventType string, payload interface{}) *httpexpect.Response
type User ¶
type User struct { returntypes.AuthorizedUser A *require.Assertions E *httpexpect.Expect // contains filtered or unexported fields }
func (*User) GithubPrivateLogin ¶
func (*User) WerePrivateReposFetched ¶
Source Files ¶
Click to show internal directories.
Click to hide internal directories.