MCPcopy Create free account
hub / github.com/entireio/git-sync / parseScenario

Function parseScenario

cmd/git-sync-bench/main.go:400–409  ·  view source on GitHub ↗
(raw string)

Source from the content-addressed store, hash-verified

398}
399
400func parseScenario(raw string) (scenario, error) {
401 switch scenario(strings.TrimSpace(strings.ToLower(raw))) {
402 case scenarioBootstrap:
403 return scenarioBootstrap, nil
404 case scenarioSync:
405 return scenarioSync, nil
406 default:
407 return "", usageError(fmt.Sprintf("unsupported --scenario %q", raw))
408 }
409}
410
411func printTextReport(report benchmarkReport) {
412 fmt.Printf("scenario: %s\n", report.Scenario)

Callers 1

runFunction · 0.85

Calls 2

scenarioTypeAlias · 0.85
usageErrorFunction · 0.85

Tested by

no test coverage detected