Documentation ¶
Index ¶
- func GetRunningOrderedFiles(pathes []string, orders []config.Order) (files []string, err error)
- func ItemInIntArray(item int, array []int) bool
- func OmitMiddle(s string, head int, tail int) string
- func PrettyStringSlice(s []string) string
- func StringArrayMapFunc(elements []string, f func(string) string) (result []string)
- func ToLower(ss []string) []string
- func TruncateBytes(content []byte, length int) []byte
- func TruncateBytesToString(content []byte, length int) string
- func TruncateString(s string, n int) string
- type Int64Set
- type Message
- type Stats
- func (s *Stats) AddErrorMessage(format string, args ...interface{})
- func (s *Stats) AddFailMessage(format string, args ...interface{})
- func (s *Stats) AddInfoMessage(format string, args ...interface{})
- func (s *Stats) AddInfofMessage(format string, args ...interface{})
- func (s *Stats) AddMessage(msg Message)
- func (s *Stats) AddPassMessage()
- func (s *Stats) AddTipMessage(format string, args ...interface{})
- func (s *Stats) AllPassed() bool
- func (s *Stats) GetFailAssertCount() int64
- func (s *Stats) GetFailCaseCount() int64
- func (s *Stats) GetMessages() []Message
- func (s *Stats) GetOkAssertCount() int64
- func (s *Stats) GetOkCaseCount() int64
- func (s *Stats) IncrFailAssertCount()
- func (s *Stats) IncrFailAssertCountByN(n int64)
- func (s *Stats) IncrFailCaseCount()
- func (s *Stats) IncrFailFileCount()
- func (s *Stats) IncrOkAssertCount()
- func (s *Stats) IncrOkCaseCount()
- func (s *Stats) IncrOkFileCount()
- func (s *Stats) MergeAssertAndCaseCount(s1 Stats)
- func (s *Stats) MergeAssertCount(s1 Stats)
- func (s *Stats) PrintMessages()
- func (s *Stats) Report(latency int64)
- type StatsCollection
- type StringSet
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func GetRunningOrderedFiles ¶
func ItemInIntArray ¶
func PrettyStringSlice ¶
func StringArrayMapFunc ¶ added in v1.0.9
func TruncateBytes ¶
TruncateBytes truncate []byte to specific length
func TruncateBytesToString ¶
TruncateBytesToString ...
func TruncateString ¶
TruncateString truncate string to specific length
Types ¶
type Int64Set ¶
type Int64Set struct {
Data map[int64]struct{}
}
Int64Set ...
func NewFixedLengthInt64Set ¶
NewFixedLengthInt64Set ...
func NewInt64SetWithValues ¶
NewInt64SetWithValues ...
type Stats ¶
type Stats struct {
// contains filtered or unexported fields
}
func (*Stats) AddErrorMessage ¶
func (*Stats) AddFailMessage ¶
func (*Stats) AddInfoMessage ¶
func (*Stats) AddInfofMessage ¶
func (*Stats) AddMessage ¶
func (*Stats) AddPassMessage ¶
func (s *Stats) AddPassMessage()
func (*Stats) AddTipMessage ¶
func (*Stats) GetFailAssertCount ¶
func (*Stats) GetFailCaseCount ¶
func (*Stats) GetMessages ¶
func (*Stats) GetOkAssertCount ¶
func (*Stats) GetOkCaseCount ¶
func (*Stats) IncrFailAssertCount ¶
func (s *Stats) IncrFailAssertCount()
func (*Stats) IncrFailAssertCountByN ¶
func (*Stats) IncrFailCaseCount ¶
func (s *Stats) IncrFailCaseCount()
func (*Stats) IncrFailFileCount ¶
func (s *Stats) IncrFailFileCount()
func (*Stats) IncrOkAssertCount ¶
func (s *Stats) IncrOkAssertCount()
func (*Stats) IncrOkCaseCount ¶
func (s *Stats) IncrOkCaseCount()
func (*Stats) IncrOkFileCount ¶
func (s *Stats) IncrOkFileCount()
func (*Stats) MergeAssertAndCaseCount ¶
func (*Stats) MergeAssertCount ¶
func (*Stats) PrintMessages ¶
func (s *Stats) PrintMessages()
type StatsCollection ¶
type StatsCollection struct {
// contains filtered or unexported fields
}
func (*StatsCollection) Add ¶
func (sc *StatsCollection) Add(s Stats)
func (*StatsCollection) GetStats ¶
func (sc *StatsCollection) GetStats() Stats
type StringSet ¶
type StringSet struct {
Data map[string]struct{}
}
StringSet ...
func NewFixedLengthStringSet ¶
NewFixedLengthStringSet ...
func NewStringSetWithValues ¶
NewStringSetWithValues ...
Click to show internal directories.
Click to hide internal directories.