mocks_aladino

package
v2.4.0 Latest Latest
Warning

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

Go to latest
Published: Jul 12, 2022 License: LGPL-3.0 Imports: 12 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func GetDefaultMockPullRequestDetails

func GetDefaultMockPullRequestDetails() *github.PullRequest

func GetDefaultMockPullRequestDetailsWith added in v2.3.0

func GetDefaultMockPullRequestDetailsWith(pr *github.PullRequest) *github.PullRequest

func MockDefaultEnv

func MockDefaultEnv(ghApiClientOptions []mock.MockBackendOption, ghGraphQLHandler func(http.ResponseWriter, *http.Request)) (aladino.Env, error)

MockDefaultEnv mocks an Aladino Env with default values.

func MockEnvWith

func MockEnvWith(prOwner string, prRepoName string, prNum int, client *github.Client, clientGQL *githubv4.Client) (aladino.Env, error)

func MustRead added in v2.4.0

func MustRead(r io.Reader) string

func MustWrite added in v2.4.0

func MustWrite(w io.Writer, s string)

Types

This section is empty.

Jump to

Keyboard shortcuts

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