Documentation ¶
Index ¶
- Variables
- func CreateTestTempFile(filename string) (*os.File, error)
- func GetDB() (*sql.DB, error)
- func GetPhysicalDB() (*sql.DB, error)
- func HandlePanic(t *testing.T, name string)
- func InterceptStdout(t *testing.T) (*bufio.Scanner, *os.File, *os.File)
- func ResetStdout(t *testing.T, reader *os.File, writer *os.File)
- func ValidatorEmpty(t *testing.T, actual string, message string) bool
- type Buffer
- func (b *Buffer) Bytes() []byte
- func (b *Buffer) Cap() int
- func (b *Buffer) Grow(n int)
- func (b *Buffer) Len() int
- func (b *Buffer) Next(n int) []byte
- func (b *Buffer) Read(p []byte) (n int, err error)
- func (b *Buffer) ReadByte() (c byte, err error)
- func (b *Buffer) ReadBytes(delim byte) (line []byte, err error)
- func (b *Buffer) ReadFrom(r io.Reader) (n int64, err error)
- func (b *Buffer) ReadRune() (r rune, size int, err error)
- func (b *Buffer) ReadString(delim byte) (line string, err error)
- func (b *Buffer) Reset()
- func (b *Buffer) String() string
- func (b *Buffer) Truncate(n int)
- func (b *Buffer) UnreadByte() error
- func (b *Buffer) UnreadRune() error
- func (b *Buffer) Write(p []byte) (n int, err error)
- func (b *Buffer) WriteByte(c byte) error
- func (b *Buffer) WriteRune(r rune) (n int, err error)
- func (b *Buffer) WriteString(s string) (n int, err error)
- func (b *Buffer) WriteTo(w io.Writer) (n int64, err error)
- type OutputValidator
Constants ¶
This section is empty.
Variables ¶
View Source
var TestDataTempDir = filepath.Join(os.TempDir(), "bntp_tests")
Functions ¶
func GetPhysicalDB ¶ added in v0.6.0
func HandlePanic ¶ added in v0.6.0
Types ¶
type Buffer ¶ added in v0.6.0
type Buffer struct {
// contains filtered or unexported fields
}
zupa@https://stackoverflow.com/a/36226525/14977798
func NewBufferString ¶ added in v0.6.0
func (*Buffer) ReadString ¶ added in v0.6.0
func (*Buffer) UnreadByte ¶ added in v0.6.0
func (*Buffer) UnreadRune ¶ added in v0.6.0
func (*Buffer) WriteString ¶ added in v0.6.0
type OutputValidator ¶ added in v0.6.0
func ValidatorContains ¶ added in v0.6.0
func ValidatorContains(mustHaves ...string) OutputValidator
func ValidatorEqual ¶ added in v0.6.0
func ValidatorEqual(expected string) OutputValidator
Click to show internal directories.
Click to hide internal directories.