< Summary

Information
Class: ZeroC.Slice.SliceInfo
Assembly: ZeroC.Slice
File(s): /home/runner/work/icerpc-csharp/icerpc-csharp/src/ZeroC.Slice/SliceInfo.cs
Tag: 275_13775359185
Line coverage
100%
Covered lines: 15
Uncovered lines: 0
Coverable lines: 15
Total lines: 32
Line coverage: 100%
Branch coverage
N/A
Covered branches: 0
Total branches: 0
Branch coverage: N/A
Method coverage
100%
Covered methods: 5
Total methods: 5
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/ZeroC.Slice/SliceInfo.cs

#LineLine coverage
 1// Copyright (c) ZeroC, Inc.
 2
 3namespace ZeroC.Slice;
 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 Slice type ID or compact ID for this slice.</summary>
 5610    public string TypeId { get; }
 11
 12    /// <summary>Gets the encoded bytes for this slice, including the leading size integer.</summary>
 2413    public ReadOnlyMemory<byte> Bytes { get; }
 14
 15    /// <summary>Gets a value indicating whether or not the slice contains tagged fields.</summary>
 2416    public bool HasTaggedFields { get; }
 17
 18    /// <summary>Gets the class instances referenced by this slice.</summary>
 6519    public IReadOnlyList<SliceClass> Instances { get; internal set; }
 20
 2521    internal SliceInfo(
 2522        string typeId,
 2523        ReadOnlyMemory<byte> bytes,
 2524        IReadOnlyList<SliceClass> instances,
 2525        bool hasTaggedFields)
 2526    {
 2527        TypeId = typeId;
 2528        Bytes = bytes;
 2529        Instances = instances;
 2530        HasTaggedFields = hasTaggedFields;
 2531    }
 32}