test

package
v0.24.1 Latest Latest
Warning

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

Go to latest
Published: Feb 14, 2024 License: Apache-2.0 Imports: 15 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 string) types.PushRequestEvent

func MuxComments

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

func MuxCommits

func MuxCommits(t *testing.T, mux *http.ServeMux, event *info.Event, commits []types.Commit)

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 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