(raw string)
| 398 | } |
| 399 | |
| 400 | func 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 | |
| 411 | func printTextReport(report benchmarkReport) { |
| 412 | fmt.Printf("scenario: %s\n", report.Scenario) |
no test coverage detected