< Summary

Information
Class: Orchestrator.Commands.Observability.SyncDataset.SyncDatasetSettings
Assembly: Orchestrator
File(s): /home/runner/work/KicktippAi/KicktippAi/src/Orchestrator/Commands/Observability/SyncDataset/SyncDatasetSettings.cs
Line coverage
75%
Covered lines: 3
Uncovered lines: 1
Coverable lines: 4
Total lines: 31
Line coverage: 75%
Branch coverage
50%
Covered branches: 1
Total branches: 2
Branch coverage: 50%
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()50%2266.67%

File(s)

/home/runner/work/KicktippAi/KicktippAi/src/Orchestrator/Commands/Observability/SyncDataset/SyncDatasetSettings.cs

#LineLine coverage
 1using System.ComponentModel;
 2using Spectre.Console;
 3using Spectre.Console.Cli;
 4
 5namespace Orchestrator.Commands.Observability.SyncDataset;
 6
 7public sealed class SyncDatasetSettings : CommandSettings
 8{
 9    [CommandOption("--input")]
 10    [Description("Path to the exported dataset artifact JSON file")]
 111    public string InputPath { get; set; } = string.Empty;
 12
 13    [CommandOption("--dataset-name")]
 14    [Description("Optional hosted dataset name override")]
 15    public string? DatasetName { get; set; }
 16
 17    [CommandOption("--dry-run")]
 18    [Description("Validate the artifact and print a summary without calling Langfuse")]
 19    [DefaultValue(false)]
 20    public bool DryRun { get; set; }
 21
 22    public override ValidationResult Validate()
 23    {
 124        if (string.IsNullOrWhiteSpace(InputPath))
 25        {
 026            return ValidationResult.Error("--input is required");
 27        }
 28
 129        return ValidationResult.Success();
 30    }
 31}

Methods/Properties

.ctor()
Validate()