< Summary

Information
Class: Ice.SlicedData
Assembly: Ice
File(s): /home/runner/work/ice/ice/csharp/src/Ice/SlicedData.cs
Tag: 71_18251537082
Line coverage
100%
Covered lines: 1
Uncovered lines: 0
Coverable lines: 1
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: 4
Total methods: 4
Method coverage: 100%

Metrics

MethodBranch coverage Crap Score Cyclomatic complexity Line coverage
.ctor(...)100%11100%
get_slices()100%11100%
set_slices(...)100%210%
.ctor(...)100%210%

File(s)

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

#LineLine coverage
 1// Copyright (c) ZeroC, Inc.
 2
 3#nullable enable
 4
 5namespace Ice;
 6
 7/// <summary>
 8/// Holds class slices that cannot be unmarshaled because their types are not known locally.
 9/// </summary>
 10/// <param name="slices">The details of each slice, in order of most-derived to least-derived.</param>
 111public sealed record class SlicedData(SliceInfo[] slices);
 12
 13/// <summary>
 14/// Encapsulates the details of a slice with an unknown type.
 15/// </summary>
 16/// <param name="typeId">The Slice type ID for this slice.</param>
 17/// <param name="compactId">The Slice compact type ID for this slice.</param>
 18/// <param name="bytes">The encoded bytes for this slice, including the leading size integer.</param>
 19/// <param name="hasOptionalMembers">Whether or not the slice contains optional members.</param>
 20/// <param name="isLastSlice">Whether or not this is the last slice.</param>
 21public sealed record class SliceInfo(
 22    string typeId,
 23    int compactId,
 24    byte[] bytes,
 25    bool hasOptionalMembers,
 26    bool isLastSlice)
 27{
 28    /// <summary>
 29    /// Gets or sets the class instances referenced by this slice.
 30    /// </summary>
 31    public Value[] instances { get; set; } = [];
 32}