< Summary

Information
Class: IceRpc.Ice.Codec.SliceInfo
Assembly: IceRpc
File(s): /home/runner/work/icerpc-csharp/icerpc-csharp/src/IceRpc/Ice/Codec/SliceInfo.cs
Tag: 2300_35243572715
Line coverage
100%
Covered lines: 15
Uncovered lines: 0
Coverable lines: 15
Total lines: 34
Line coverage: 100%
Branch coverage
N/A
Covered branches: 0
Total branches: 0
Branch coverage: N/A
Method coverage
100%
Covered methods: 5
Fully covered methods: 5
Total methods: 5
Method coverage: 100%
Full method coverage: 100%

Metrics

MethodBranch coverage Crap Score Cyclomatic complexity Line coverage
get_TypeId()100%11100%
get_Bytes()100%11100%
get_HasTaggedFields()100%11100%
get_Instances()100%11100%
.ctor(...)100%11100%

File(s)

/home/runner/work/icerpc-csharp/icerpc-csharp/src/IceRpc/Ice/Codec/SliceInfo.cs

#LineLine coverage
 1// Copyright (c) ZeroC, Inc.
 2
 3namespace IceRpc.Ice.Codec;
 4
 5/// <summary>Encapsulates the details of a class slice (as in slice of cake) that an <see cref="IActivator" /> could
 6/// not decode.</summary>
 7public sealed class SliceInfo
 8{
 9    /// <summary>Gets the Ice type ID or compact ID for this slice. An Ice type ID starts with "::", while a
 10    /// compact ID is a non-negative integer in decimal notation.</summary>
 5611    public string TypeId { get; }
 12
 13    /// <summary>Gets the encoded bytes for this slice, excluding the leading slice size. When the slice has tagged
 14    /// fields, the trailing tag end marker is also excluded.</summary>
 2415    public ReadOnlyMemory<byte> Bytes { get; }
 16
 17    /// <summary>Gets a value indicating whether or not the slice contains tagged fields.</summary>
 2418    public bool HasTaggedFields { get; }
 19
 20    /// <summary>Gets the class instances referenced by this slice.</summary>
 6821    public IReadOnlyList<IceClass> Instances { get; internal set; }
 22
 2823    internal SliceInfo(
 2824        string typeId,
 2825        ReadOnlyMemory<byte> bytes,
 2826        IReadOnlyList<IceClass> instances,
 2827        bool hasTaggedFields)
 2828    {
 2829        TypeId = typeId;
 2830        Bytes = bytes;
 2831        Instances = instances;
 2832        HasTaggedFields = hasTaggedFields;
 2833    }
 34}