{"modulePath":"github.com/vishh/contrib","version":"v0.0.0-20161201094326-4b2352255992","isLatest":true,"isStandardLibrary":false,"goos":"all","goarch":"all","docs":"# package testing\n\n## Functions\n\n```go\nfunc Comment(id int, login string, createdAt time.Time, body string) github.IssueComment\n```\nComment is a helper to create a valid-ish comment for testing\n\n```go\nfunc Commit(sha string, t int64) *github.Commit\n```\nCommit returns a filled out github.Commit which happened at time.Unix(t, 0)\n\n```go\nfunc Commits(num int, time int64) []github.RepositoryCommit\n```\nCommits returns an array of github.RepositoryCommits. The first commit will have happened at time \\`time\\`, the next commit \\`time + 1\\`, etc\n\n```go\nfunc Events(labels []LabelTime) []github.IssueEvent\n```\nEvents returns a slice of github.IssueEvent where the specified labels were applied at the specified times\n\n```go\nfunc InitServer(t *testing.T, issue *github.Issue, pr *github.PullRequest, events []github.IssueEvent, commits []github.RepositoryCommit, status *github.CombinedStatus, masterCommit *github.RepositoryCommit) (*github.Client, *httptest.Server, *http.ServeMux)\n```\nInitServer will return a github.Client which will talk to httptest.Server, to retrieve information from the http.ServeMux. If an issue, pr, events, or commits are supplied it will repond with those on o/r/\n\n```go\nfunc Issue(user string, number int, labels []string, isPR bool) *github.Issue\n```\nIssue returns a filled out github.Issue\n\n```go\nfunc PullRequest(user string, merged, mergeDetermined, mergeable bool) *github.PullRequest\n```\nPullRequest returns a filled out github.PullRequest\n\n```go\nfunc ServeIssue(t *testing.T, mux *http.ServeMux, issue *github.Issue)\n```\nServeIssue is a helper to load additional issues into the test server\n\n```go\nfunc Status(sha string, success []string, fail []string, pending []string, errored []string) *github.CombinedStatus\n```\nStatus returns a github.CombinedStatus\n\n## Types\n\n```go\ntype LabelTime struct {\n\tUser  string\n\tLabel string\n\tTime  int64\n}\n```\nLabelTime is a struct which can be used to call Events() It expresses what label the event should be about and what time the event took place.\n\n","path":"github.com/vishh/contrib/mungegithub/github/testing","name":"testing","synopsis":"","isRedistributable":true}
