Documentation ¶
Index ¶
- Variables
- func DoStats(ch <-chan *Stats)
- func ReadYAMLFiles(folderPath string) (map[string]*Scenario, error)
- func RunScenario(ctx context.Context, wg *sync.WaitGroup, statCh chan<- *Stats, round int, ...)
- func ShowStats(scenarios map[string]*Scenario)
- type Scenario
- type ScenarioStep
- type SortInfo
- type Stats
Constants ¶
This section is empty.
Variables ¶
View Source
var FuncMaps = template.FuncMap{ "split": func(s any, sep string, i int) string { switch v := s.(type) { case string: parts := strings.Split(v, sep) if len(parts) > i { return parts[i] } return parts[0] default: return "" } }, "randInt": func(sep string, n ...int) string { result := make([]string, len(n)) for i := range n { result[i] = strconv.Itoa(rand.Intn(n[i])) } return strings.Join(result, sep) }, "join": func(sep string, s ...any) string { result := make([]string, len(s)) for i := range s { result[i] = fmt.Sprintf("%v", s[i]) } return strings.Join(result, sep) }, }
Functions ¶
func RunScenario ¶ added in v1.1.2
Types ¶
type Scenario ¶
type ScenarioStep ¶
Click to show internal directories.
Click to hide internal directories.