< Summary

Information
Class: Ice.UnknownSlicedValue
Assembly: Ice
File(s): /_/csharp/src/Ice/UnknownSlicedValue.cs
Tag: 125_37167941578
Line coverage
100%
Covered lines: 2
Uncovered lines: 0
Coverable lines: 2
Total lines: 27
Line coverage: 100%
Branch coverage
N/A
Covered branches: 0
Total branches: 0
Branch coverage: N/A
Method coverage
100%
Covered methods: 2
Fully covered methods: 2
Total methods: 2
Method coverage: 100%
Full method coverage: 100%

Metrics

MethodBranch coverage Crap Score Cyclomatic complexity Line coverage
.ctor(...)100%11100%
ice_id()100%11100%

File(s)

/_/csharp/src/Ice/UnknownSlicedValue.cs

#LineLine coverage
 1// Copyright (c) ZeroC, Inc.
 2
 3#nullable enable
 4
 5namespace Ice;
 6
 7/// <summary>
 8/// Represents an instance of an unknown class.
 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 value, or the string form of the compact type
 16    /// ID (for example, "1") when the most-derived slice was marshaled with a compact type ID.</param>
 117    public UnknownSlicedValue(string unknownTypeId) => _unknownTypeId = unknownTypeId;
 18
 19    /// <summary>
 20    /// Returns the Slice type ID associated with this instance.
 21    /// </summary>
 22    /// <returns>The type ID supplied to the constructor. It's the string form of the compact type ID (for example,
 23    /// "1") when the most-derived slice was marshaled with a compact type ID.</returns>
 124    public override string ice_id() => _unknownTypeId;
 25
 26    private readonly string _unknownTypeId;
 27}

Methods/Properties

.ctor(string)
ice_id()