Documentation
¶
Index ¶
- func AssertEq(act interface{}, expected interface{}, t *testing.T, errmsg string)
- func AssertGt(act int, baseline int, t *testing.T, errmsg string)
- func AssertLt(act int, baseline int, t *testing.T, errmsg string)
- func AssertTrue(condition bool, t *testing.T, errmsg string)
- func DecodeJson(jsonString string, v interface{})
- func InitTestCaseCommits() parse.Commits
- func InitTestCaseCommitsCorner() parse.Commits
- func ReadFile(fileName string) string
- func Where()
- type MockAPI
- func (c *MockAPI) FetchContent(user, repo, file string) *github.RepositoryContent
- func (c *MockAPI) FetchIssues(user string, repo string, opts *github.IssueListByRepoOptions) []*github.Issue
- func (c *MockAPI) FetchLanguages(user string, repo string) map[string]int
- func (c *MockAPI) FetchRateLimit() *github.RateLimits
- func (c *MockAPI) FetchRepoCommits(user string, repo string, opts *github.CommitsListOptions) []*github.RepositoryCommit
- func (c *MockAPI) FetchRepository(user string, repo string) *github.Repository
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func DecodeJson ¶
func DecodeJson(jsonString string, v interface{})
func InitTestCaseCommits ¶
Types ¶
type MockAPI ¶
type MockAPI struct{}
func (*MockAPI) FetchContent ¶
func (c *MockAPI) FetchContent(user, repo, file string) *github.RepositoryContent
func (*MockAPI) FetchIssues ¶
func (*MockAPI) FetchLanguages ¶
func (*MockAPI) FetchRateLimit ¶
func (c *MockAPI) FetchRateLimit() *github.RateLimits
func (*MockAPI) FetchRepoCommits ¶
func (c *MockAPI) FetchRepoCommits(user string, repo string, opts *github.CommitsListOptions) []*github.RepositoryCommit
func (*MockAPI) FetchRepository ¶
func (c *MockAPI) FetchRepository(user string, repo string) *github.Repository
Click to show internal directories.
Click to hide internal directories.