tests

package
v0.0.0-...-914f43d Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jan 11, 2023 License: MIT Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func AssertEq

func AssertEq(act interface{}, expected interface{}, t *testing.T, errmsg string)

func AssertGt

func AssertGt(act int, baseline int, t *testing.T, errmsg string)

func AssertLt

func AssertLt(act int, baseline int, t *testing.T, errmsg string)

func AssertTrue

func AssertTrue(condition bool, t *testing.T, errmsg string)

func DecodeJson

func DecodeJson(jsonString string, v interface{})

func InitTestCaseCommits

func InitTestCaseCommits() parse.Commits

func InitTestCaseCommitsCorner

func InitTestCaseCommitsCorner() parse.Commits

func ReadFile

func ReadFile(fileName string) string

func Where

func Where()

Types

type MockAPI

type MockAPI struct{}

func (*MockAPI) FetchContent

func (c *MockAPI) FetchContent(user, repo, file string) *github.RepositoryContent

func (*MockAPI) FetchIssues

func (c *MockAPI) FetchIssues(user string, repo string, opts *github.IssueListByRepoOptions) []*github.Issue

func (*MockAPI) FetchLanguages

func (c *MockAPI) FetchLanguages(user string, repo string) map[string]int

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

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL