< Summary

Information
Class: Ice.UnknownSlicedValue
Assembly: Ice
File(s): /home/runner/work/ice/ice/csharp/src/Ice/UnknownSlicedValue.cs
Tag: 71_18251537082
Line coverage
100%
Covered lines: 2
Uncovered lines: 0
Coverable lines: 2
Total lines: 25
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
.ctor(...)100%11100%
ice_id()100%11100%

File(s)

/home/runner/work/ice/ice/csharp/src/Ice/UnknownSlicedValue.cs

#LineLine coverage
 1// Copyright (c) ZeroC, Inc.
 2
 3#nullable enable
 4
 5namespace Ice;
 6
 7/// <summary>
 8/// Unknown sliced value holds an instance of an unknown Slice class type.
 9/// </summary>
 10public sealed class UnknownSlicedValue : Value
 11{
 12    /// <summary>
 13    /// Initializes a new instance of the <see cref="UnknownSlicedValue" /> class.
 14    /// </summary>
 15    /// <param name="unknownTypeId">The Slice type ID of the unknown object.</param>
 116    public UnknownSlicedValue(string unknownTypeId) => _unknownTypeId = unknownTypeId;
 17
 18    /// <summary>
 19    /// Returns the Slice type ID associated with this object.
 20    /// </summary>
 21    /// <returns>The type ID.</returns>
 122    public override string ice_id() => _unknownTypeId;
 23
 24    private readonly string _unknownTypeId;
 25}

Methods/Properties

.ctor(string)
ice_id()