< Summary

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

Metrics

MethodBranch coverage Crap Score Cyclomatic complexity Line coverage
.ctor(...)100%11100%
.ctor(...)100%210%
get_typeId()100%11100%
set_typeId(...)100%210%
get_compactId()100%11100%
set_compactId(...)100%210%
get_bytes()100%11100%
set_bytes(...)100%210%
get_hasOptionalMembers()100%11100%
set_hasOptionalMembers(...)100%210%
get_isLastSlice()100%11100%
set_isLastSlice(...)100%210%
get_instances()100%11100%
set_instances(...)100%11100%

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>
 11public 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>
 121public sealed record class SliceInfo(
 122    string typeId,
 123    int compactId,
 124    byte[] bytes,
 125    bool hasOptionalMembers,
 126    bool isLastSlice)
 27{
 28    /// <summary>
 29    /// Gets or sets the class instances referenced by this slice.
 30    /// </summary>
 131    public Value[] instances { get; set; } = [];
 32}