< Summary

Information
Class: Elsa.Platform.Integration.Services.PlatformRecipeArtifactApplyResult
Assembly: Elsa.Platform.Integration
File(s): /home/runner/work/elsa-core/elsa-core/src/modules/Elsa.Platform.Integration/Services/IPlatformRecipeArtifactApplier.cs
Line coverage
66%
Covered lines: 4
Uncovered lines: 2
Coverable lines: 6
Total lines: 21
Line coverage: 66.6%
Branch coverage
N/A
Covered branches: 0
Total branches: 0
Branch coverage: N/A
Method coverage

Feature is only available for sponsors

Upgrade to PRO version

Metrics

MethodBranch coverage Crap Score Cyclomatic complexity Line coverage
.ctor(...)100%11100%
get_Status()100%11100%
get_ObservedDigest()100%210%
get_RuntimeReference()100%210%
get_Diagnostics()100%11100%
get_Succeeded()100%11100%

File(s)

/home/runner/work/elsa-core/elsa-core/src/modules/Elsa.Platform.Integration/Services/IPlatformRecipeArtifactApplier.cs

#LineLine coverage
 1using Elsa.Platform.Integration.Models;
 2
 3namespace Elsa.Platform.Integration.Services;
 4
 5public interface IPlatformRecipeArtifactApplier
 6{
 7    Task<PlatformRecipeArtifactApplyResult> ApplyAsync(
 8        PlatformRuntimeCommand command,
 9        PlatformArtifactItem artifact,
 10        Stream artifactZip,
 11        CancellationToken cancellationToken = default);
 12}
 13
 214public sealed record PlatformRecipeArtifactApplyResult(
 215    PlatformArtifactStatus Status,
 016    PlatformArtifactDigest? ObservedDigest,
 017    string? RuntimeReference,
 318    IReadOnlyList<PlatformDiagnostic> Diagnostics)
 19{
 120    public bool Succeeded => Status == PlatformArtifactStatus.Applied;
 21}