helper

package
v0.0.0-...-194d0c4 Latest Latest
Warning

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

Go to latest
Published: Aug 4, 2018 License: MIT Imports: 15 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ReadAll

func ReadAll(t *testing.T, r io.Reader) []byte

func ReadAllAsStr

func ReadAllAsStr(t *testing.T, r io.Reader) string

func ReadProto

func ReadProto(t *testing.T, fpath ...string) []*entity.Package

func TestConfig

func TestConfig() *config.Config

Types

type MockPrompt

type MockPrompt struct {
	Executor  func(string)
	Completer func(prompt.Document) []prompt.Suggest
	// contains filtered or unexported fields
}

MockPrompt implements gateway.Prompter

func NewMockPrompt

func NewMockPrompt(iq, sq []string) *MockPrompt

func (*MockPrompt) Input

func (p *MockPrompt) Input() (string, error)

func (*MockPrompt) Run

func (p *MockPrompt) Run()

func (*MockPrompt) Select

func (p *MockPrompt) Select(_ string, _ []string) (string, error)

func (*MockPrompt) SetPrefix

func (p *MockPrompt) SetPrefix(_ string)

func (*MockPrompt) SetPrefixColor

func (p *MockPrompt) SetPrefixColor(_ color.Color) error

type MockRepeatedPrompt

type MockRepeatedPrompt struct {
	*MockPrompt
	// contains filtered or unexported fields
}

func NewMockRepeatedPrompt

func NewMockRepeatedPrompt(iq [][]string, sq []string) *MockRepeatedPrompt

func (*MockRepeatedPrompt) Input

func (p *MockRepeatedPrompt) Input() (string, error)

type Server

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

func NewServer

func NewServer(t *testing.T, enableReflection bool) *Server

func (*Server) Start

func (s *Server) Start() *Server

func (*Server) Stop

func (s *Server) Stop()

Directories

Path Synopsis
helloworld
Package helloworld is a generated protocol buffer package.
Package helloworld is a generated protocol buffer package.

Jump to

Keyboard shortcuts

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