cmdtest

package
v1.22.0 Latest Latest
Warning

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

Go to latest
Published: Jan 10, 2022 License: MIT Imports: 18 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	GlabBinaryPath    string
	CachedTestFactory *cmdutils.Factory
)

Functions

func CopyTestRepo

func CopyTestRepo(log fatalLogger, name string) string

func Eq

func Eq(t *testing.T, got interface{}, expected interface{})

func FirstLine

func FirstLine(output []byte) string

func InitTest

func InitTest(m *testing.M, suffix string)

func RunCommand

func RunCommand(cmd *cobra.Command, cli string, stds ...*bytes.Buffer) (*test.CmdOut, error)

func StubFactory

func StubFactory(repo string) *cmdutils.Factory

func StubFactoryWithConfig

func StubFactoryWithConfig(repo string) (*cmdutils.Factory, error)

Types

type Author added in v1.15.0

type Author struct {
	ID        int    `json:"id"`
	Username  string `json:"username"`
	Email     string `json:"email"`
	Name      string `json:"name"`
	State     string `json:"state"`
	AvatarURL string `json:"avatar_url"`
	WebURL    string `json:"web_url"`
}

Jump to

Keyboard shortcuts

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