< Summary

Information
Class: Orchestrator.Commands.Observability.Experiments.RunRepeatedMatchSliceSettings
Assembly: Orchestrator
File(s): /home/runner/work/KicktippAi/KicktippAi/src/Orchestrator/Commands/Observability/Experiments/RunRepeatedMatchSliceSettings.cs
Line coverage
85%
Covered lines: 12
Uncovered lines: 2
Coverable lines: 14
Total lines: 47
Line coverage: 85.7%
Branch coverage
66%
Covered branches: 4
Total branches: 6
Branch coverage: 66.6%
Method coverage

Feature is only available for sponsors

Upgrade to PRO version

Metrics

MethodBranch coverage Crap Score Cyclomatic complexity Line coverage
.ctor()100%11100%
Validate()66.67%7675%
ToRunOptions()100%11100%

File(s)

/home/runner/work/KicktippAi/KicktippAi/src/Orchestrator/Commands/Observability/Experiments/RunRepeatedMatchSliceSettings.cs

#LineLine coverage
 1using System.ComponentModel;
 2using Spectre.Console;
 3using Spectre.Console.Cli;
 4
 5namespace Orchestrator.Commands.Observability.Experiments;
 6
 7public sealed class RunRepeatedMatchSliceSettings : RunExperimentSettingsBase
 8{
 9    [CommandOption("--batch-count")]
 10    [Description("Optional number of post-warmup batches per fixture. Defaults to 3")]
 11    [DefaultValue(3)]
 112    public int BatchCount { get; set; } = 3;
 13
 14    [CommandOption("--parallelism")]
 15    [Description("Maximum number of repeated-match fixture workflows to run concurrently. Defaults to 5")]
 16    [DefaultValue(5)]
 117    public int Parallelism { get; set; } = 5;
 18
 19    public override ValidationResult Validate()
 20    {
 121        var commonValidation = ValidateCommon();
 122        if (!commonValidation.Successful)
 23        {
 024            return commonValidation;
 25        }
 26
 127        if (BatchCount < 1)
 28        {
 029            return ValidationResult.Error("--batch-count must be at least 1");
 30        }
 31
 132        if (Parallelism < 1)
 33        {
 134            return ValidationResult.Error("--parallelism must be at least 1");
 35        }
 36
 137        return ValidationResult.Success();
 38    }
 39
 40    internal PreparedExperimentRunOptions ToRunOptions()
 41    {
 142        return CreateRunOptions(
 143            "warmup-plus-batches",
 144            batchCount: BatchCount,
 145            parallelism: Parallelism);
 46    }
 47}

Methods/Properties

.ctor()
Validate()
ToRunOptions()