test

package
v0.41.1 Latest Latest
Warning

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

Go to latest
Published: Jan 29, 2026 License: Apache-2.0 Imports: 16 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func MakeEvent

func MakeEvent(event *info.Event) *info.Event

MakeEvent should we try to reflect? or json.Marshall? may be better ways, right?

func MakePREvent

func MakePREvent(accountid, nickname, sha, comment string) types.PullRequestEvent

func MakePushEvent

func MakePushEvent(accountid, nickname, sha, changeType string) types.PushRequestEvent

func MuxBranch added in v0.37.5

func MuxBranch(t *testing.T, mux *http.ServeMux, event *info.Event, commit types.Commit)

func MuxComments

func MuxComments(t *testing.T, mux *http.ServeMux, event *info.Event, comments []types.Comment)

func MuxCommit added in v0.37.5

func MuxCommit(t *testing.T, mux *http.ServeMux, event *info.Event, commit types.Commit)

MuxCommit mocks the GetCommit API (single commit, not paginated).

func MuxCreateComment

func MuxCreateComment(t *testing.T, mux *http.ServeMux, event *info.Event, expectedCommentSubstr string)

func MuxCreateCommitstatus

func MuxCreateCommitstatus(t *testing.T, mux *http.ServeMux, event *info.Event, expectedDescSubstr, applicationName string, expStatus provider.StatusOpts)

func MuxDirContent

func MuxDirContent(t *testing.T, mux *http.ServeMux, event *info.Event, testdir, provenance string)

func MuxFiles

func MuxFiles(t *testing.T, mux *http.ServeMux, event *info.Event, filescontents map[string]string, provenance string)

func MuxListDirFiles

func MuxListDirFiles(t *testing.T, mux *http.ServeMux, event *info.Event, dirs map[string][]bitbucket.RepositoryFile, provenance string)

func MuxOrgMember

func MuxOrgMember(t *testing.T, mux *http.ServeMux, event *info.Event, members []types.Member)

func MuxRepoInfo

func MuxRepoInfo(t *testing.T, mux *http.ServeMux, event *info.Event, repo *bitbucket.Repository)

func SetupBBCloudClient

func SetupBBCloudClient(t *testing.T) (*bitbucket.Client, *http.ServeMux, func())

Types

This section is empty.

Jump to

Keyboard shortcuts

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