Documentation ¶
Index ¶
- func NewBooleanTest() tests.Test
- func NewFloatTest() tests.Test
- func NewGroup() tests.Group
- func NewSignedTest() tests.Test
- func NewStringTest() tests.Test
- func NewSuite(skipFirst bool) tests.Suite
- func NewTimeTest() tests.Test
- func NewUnsignedTest() tests.Test
- type BooleanTest
- type FloatTest
- type Group
- type SignedTest
- type StringTest
- type Suite
- type TimeTest
- type UnsignedTest
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func NewUnsignedTest ¶
NewUnsignedTest returns a fresh UnsignedTest
Types ¶
type BooleanTest ¶
type BooleanTest struct {
// contains filtered or unexported fields
}
BooleanTest checks if a column contains only boolstamps and identifies their layout
func (*BooleanTest) Passed ¶
func (t *BooleanTest) Passed() bool
Passed returns true if and only if all entries were bools
func (*BooleanTest) PrintResult ¶
func (t *BooleanTest) PrintResult(out io.Writer)
PrintResult indicates either failure or the detected bool types
func (*BooleanTest) Run ¶
func (t *BooleanTest) Run(cell string)
Run attempts to convert the current cell to many different bool types
type FloatTest ¶
type FloatTest struct {
// contains filtered or unexported fields
}
FloatTest checks if a column contains only floating point numbers and identifies their size
func (*FloatTest) PrintResult ¶
PrintResult indicates either failure or the smallest applicable float type
type Group ¶
type Group struct {
// contains filtered or unexported fields
}
Group is a set of Type tests to run for a set of related values
func (*Group) PrintResult ¶
PrintResult writes out the results of the type tests
type SignedTest ¶
type SignedTest struct {
// contains filtered or unexported fields
}
SignedTest checks if a column contains only signed integers and identifies their size
func (*SignedTest) Passed ¶
func (s *SignedTest) Passed() bool
Passed returns true if and only if all entries were signed integers
func (*SignedTest) PrintResult ¶
func (s *SignedTest) PrintResult(out io.Writer)
PrintResult indicates either failure or the smallest applicable signed type
func (*SignedTest) Run ¶
func (s *SignedTest) Run(cell string)
Run attempts to convert the current cell to an integer, storing the max magnitude if found
type StringTest ¶
type StringTest struct {
// contains filtered or unexported fields
}
StringTest checks if a column contains only boolstamps and identifies their layout
func (*StringTest) PrintResult ¶
func (s *StringTest) PrintResult(out io.Writer)
PrintResult indicates either failure or the detected string class
func (*StringTest) Run ¶
func (s *StringTest) Run(cell string)
Run attempts to detect the character class of the current string
type Suite ¶
type Suite struct {
// contains filtered or unexported fields
}
Suite checks for empty cells
type TimeTest ¶
type TimeTest struct {
// contains filtered or unexported fields
}
TimeTest checks if a column contains only timestamps and identifies their layout
func (*TimeTest) PrintResult ¶
PrintResult indicates either failure or the detected time types
type UnsignedTest ¶
type UnsignedTest struct {
// contains filtered or unexported fields
}
UnsignedTest checks if a column contains only unsigned integers and identifies their size
func (*UnsignedTest) Passed ¶
func (u *UnsignedTest) Passed() bool
Passed returns true if and only if all entries were unsigned integers
func (*UnsignedTest) PrintResult ¶
func (u *UnsignedTest) PrintResult(out io.Writer)
PrintResult indicates either failure or the smallest applicable unsigned type
func (*UnsignedTest) Run ¶
func (u *UnsignedTest) Run(cell string)
Run attempts to convert the current cell to an integer, storing the maximum if found