gitea: code.gitea.io/gitea/integrations Index | Files

package integrations

import "code.gitea.io/gitea/integrations"

Index

Package Files

api_repo_file_helpers.go html_helper.go testlogger.go

func NewTestLogger Uses

func NewTestLogger() log.LoggerProvider

NewTestLogger creates a TestLogger as a log.LoggerProvider

func PrintCurrentTest Uses

func PrintCurrentTest(t testing.TB, skip ...int)

PrintCurrentTest prints the current test to os.Stdout

func Printf Uses

func Printf(format string, args ...interface{})

Printf takes a format and args and prints the string to os.Stdout

type HTMLDoc Uses

type HTMLDoc struct {
    // contains filtered or unexported fields
}

HTMLDoc struct

func NewHTMLParser Uses

func NewHTMLParser(t testing.TB, body *bytes.Buffer) *HTMLDoc

NewHTMLParser parse html file

func (*HTMLDoc) AssertElement Uses

func (doc *HTMLDoc) AssertElement(t testing.TB, selector string, checkExists bool)

AssertElement check if element by selector exists or does not exist depending on checkExists

func (*HTMLDoc) GetCSRF Uses

func (doc *HTMLDoc) GetCSRF() string

GetCSRF for get CSRC token value from input

func (*HTMLDoc) GetInputValueByID Uses

func (doc *HTMLDoc) GetInputValueByID(id string) string

GetInputValueByID for get input value by id

func (*HTMLDoc) GetInputValueByName Uses

func (doc *HTMLDoc) GetInputValueByName(name string) string

GetInputValueByName for get input value by name

type TestLogger Uses

type TestLogger struct {
    log.WriterLogger
}

TestLogger is a logger which will write to the testing log

func (*TestLogger) Flush Uses

func (log *TestLogger) Flush()

Flush when log should be flushed

func (*TestLogger) GetName Uses

func (log *TestLogger) GetName() string

GetName returns the default name for this implementation

func (*TestLogger) Init Uses

func (log *TestLogger) Init(config string) error

Init inits connection writer with json config. json config only need key "level".

Package integrations imports 14 packages (graph). Updated 2019-09-17. Refresh now. Tools for package owners.