test

package
v0.15.6 Latest Latest
Warning

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

Go to latest
Published: Apr 19, 2023 License: Apache-2.0 Imports: 10 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func MuxAllowUserID

func MuxAllowUserID(t *testing.T, mux *http.ServeMux, projectID, userID int)

func MuxDiscussionsNote

func MuxDiscussionsNote(t *testing.T, mux *http.ServeMux, pid, mrID int, author string, authorID int, notecontent string)

func MuxGetFile

func MuxGetFile(t *testing.T, mux *http.ServeMux, pid int, fname, content string)

func MuxListTektonDir

func MuxListTektonDir(t *testing.T, mux *http.ServeMux, pid int, ref, prs string)

func MuxNotePost

func MuxNotePost(t *testing.T, mux *http.ServeMux, projectNumber, mrID int, catchStr string)

func Setup

func Setup(ctx context.Context, t *testing.T) (*gitlab.Client, *http.ServeMux, func())

Types

type TEvent

type TEvent struct {
	Username, DefaultBranch, URL, SHA, SHAurl, SHAtitle, Headbranch, Basebranch string
	UserID, MRID, TargetProjectID, SourceProjectID                              int
	PathWithNameSpace, Comment                                                  string
}

func (TEvent) MREventAsJSON

func (t TEvent) MREventAsJSON() string

func (TEvent) NoteEventAsJSON

func (t TEvent) NoteEventAsJSON(comment string) string

func (TEvent) PushEventAsJSON

func (t TEvent) PushEventAsJSON(withcommits bool) string

Jump to

Keyboard shortcuts

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