< Summary

Information
Class: ZeroC.Slice.Result<T1, T2>
Assembly: ZeroC.Slice
File(s): /home/runner/work/icerpc-csharp/icerpc-csharp/src/ZeroC.Slice/Result.cs
Tag: 275_13775359185
Line coverage
100%
Covered lines: 2
Uncovered lines: 0
Coverable lines: 2
Total lines: 22
Line coverage: 100%
Branch coverage
N/A
Covered branches: 0
Total branches: 0
Branch coverage: N/A
Method coverage
100%
Covered methods: 2
Total methods: 2
Method coverage: 100%

Metrics

MethodBranch coverage Crap Score Cyclomatic complexity Line coverage
get_Value()100%11100%
get_Value()100%11100%

File(s)

/home/runner/work/icerpc-csharp/icerpc-csharp/src/ZeroC.Slice/Result.cs

#LineLine coverage
 1// Copyright (c) ZeroC, Inc.
 2
 3namespace ZeroC.Slice;
 4
 5/// <summary>A discriminated union that represents either a success or a failure. It is typically used as the return
 6/// type of Slice operations.</summary>
 7/// <typeparam name="TSuccess">The success type.</typeparam>
 8/// <typeparam name="TFailure">The failure type.</typeparam>
 9/// <remarks>The Slice Result type (a built-in generic type) maps to this generic class in C#. The Dunet source
 10/// generator provides many methods (Match, MatchSuccess, MatchFailure, MatchAsync, UnwrapSuccess, UnwrapFailure and
 11/// more) for this generic class. See <see href="https://github.com/domn1995/dunet" /> for more information.</remarks>
 12[Dunet.Union]
 13public abstract partial record class Result<TSuccess, TFailure>
 14{
 15    /// <summary>Represents a successful <see cref="Result{TSuccess, TFailure}" />.</summary>
 16    /// <param name="Value">The value of type <typeparamref name="TSuccess"/>.</param>
 717    public partial record class Success(TSuccess Value);
 18
 19    /// <summary>Represents a failed <see cref="Result{TSuccess, TFailure}" />.</summary>
 20    /// <param name="Value">The value of type <typeparamref name="TFailure"/>.</param>
 1121    public partial record class Failure(TFailure Value);
 22}

Methods/Properties

get_Value()
get_Value()