< Summary

Information
Class: Orchestrator.Commands.Observability.Experiments.RunRepeatedMatchSettings
Assembly: Orchestrator
File(s): /home/runner/work/KicktippAi/KicktippAi/src/Orchestrator/Commands/Observability/Experiments/RunRepeatedMatchSettings.cs
Line coverage
87%
Covered lines: 7
Uncovered lines: 1
Coverable lines: 8
Total lines: 34
Line coverage: 87.5%
Branch coverage
75%
Covered branches: 3
Total branches: 4
Branch coverage: 75%
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()75%4483.33%
ToRunOptions()100%11100%

File(s)

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

#LineLine coverage
 1using System.ComponentModel;
 2using Spectre.Console;
 3using Spectre.Console.Cli;
 4
 5namespace Orchestrator.Commands.Observability.Experiments;
 6
 7public sealed class RunRepeatedMatchSettings : RunExperimentSettingsBase
 8{
 9    [CommandOption("--batch-count")]
 10    [Description("Optional number of post-warmup batches. Defaults to 3")]
 11    [DefaultValue(3)]
 112    public int BatchCount { get; set; } = 3;
 13
 14    public override ValidationResult Validate()
 15    {
 116        var commonValidation = ValidateCommon();
 117        if (!commonValidation.Successful)
 18        {
 119            return commonValidation;
 20        }
 21
 122        if (BatchCount < 1)
 23        {
 024            return ValidationResult.Error("--batch-count must be at least 1");
 25        }
 26
 127        return ValidationResult.Success();
 28    }
 29
 30    internal PreparedExperimentRunOptions ToRunOptions()
 31    {
 132        return CreateRunOptions("warmup-plus-batches", batchCount: BatchCount);
 33    }
 34}

Methods/Properties

.ctor()
Validate()
ToRunOptions()