Documentation ¶
Index ¶
- Constants
- Variables
- func All(vs []string, f func(string) bool) bool
- func Any(vs []string, f func(string) bool) bool
- func AppendPrefixOnSlice(prefix string, slice []string) (result []string)
- func AppendSuffixOnSlice(suffix string, slice []string) (result []string)
- func DeepEqual(t *testing.T, expected interface{}, actual interface{})
- func Filter(vs []string, f func(string) bool) []string
- func Include(vs []string, t string) bool
- func Index(vs []string, t string) int
- func Map(vs []string, f func(string) string) []string
- func MapHasAllTrue(a map[string]bool) bool
- func NotDeepEqual(t *testing.T, expected interface{}, actual interface{})
- func WrapGrey(msg ...string) string
- func WrapRed(msg ...string) string
- func WrapYellow(msg ...string) string
- type Set
Constants ¶
View Source
const EmptyString = ""
Variables ¶
View Source
var ( ProjectMultiLevelPath = fmt.Sprint(testPath, "/projectMultiLevel") ProjectSimpleLevelPath = fmt.Sprint(testPath, "/projectSimpleLevel") )
Functions ¶
func All ¶ added in v0.2.0
All returns `true` if every strings in the slice satisfy the predicate `f`.
func Any ¶ added in v0.2.0
Any returns `true` if one of the strings in the slice satisfies the predicate `f`.
func AppendPrefixOnSlice ¶ added in v0.2.0
func AppendSuffixOnSlice ¶ added in v0.2.0
func Filter ¶ added in v0.2.0
Filter returns a new slice containing all strings in the slice that satisfy the predicate `f`.
func Index ¶ added in v0.2.0
Index returns the first index of the target string `t`, or -1 if no match is found.
func Map ¶ added in v0.2.0
Map returns a new slice containing the results of applying the function `f` to each string in the original slice.
func MapHasAllTrue ¶ added in v0.2.0
func NotDeepEqual ¶ added in v0.2.0
func WrapYellow ¶ added in v0.2.0
Types ¶
type Set ¶ added in v0.2.0
type Set struct {
// contains filtered or unexported fields
}
func NewSetFromSlice ¶ added in v0.2.0
func (*Set) UnmarshalYAML ¶ added in v0.2.0
Read Struct Field to return the associated Tag name It's used to read string or slice of string due to different notation in yaml
Click to show internal directories.
Click to hide internal directories.