testutil

package
v0.11.0 Latest Latest
Warning

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

Go to latest
Published: Sep 21, 2021 License: MIT Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func TestParser

func TestParser(t *testing.T, parseFunc func(Values, parse.FlagSet) error)

Types

type StubFlagSet

type StubFlagSet struct {
	IgnoreUndefined bool
	// contains filtered or unexported fields
}

func (*StubFlagSet) AddBoolFlag

func (s *StubFlagSet) AddBoolFlag(name string, value bool)

func (*StubFlagSet) AddFlag

func (s *StubFlagSet) AddFlag(name, value string)

func (*StubFlagSet) Lookup

func (s *StubFlagSet) Lookup(name string) *flag.Flag

func (*StubFlagSet) Pairs

func (s *StubFlagSet) Pairs() [][2]string

func (*StubFlagSet) Set

func (s *StubFlagSet) Set(name, value string) error

func (*StubFlagSet) VisitAll

func (s *StubFlagSet) VisitAll(fn func(*flag.Flag))

func (*StubFlagSet) VisitUnspecified added in v0.5.0

func (s *StubFlagSet) VisitUnspecified(fn func(*flag.Flag))

type Values

type Values map[string]interface{}

Jump to

Keyboard shortcuts

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