< Summary

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

Metrics

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

File(s)

/_/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 slices of the unknown class, 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 class slice with an unknown type.
 15/// </summary>
 16/// <param name="typeId">The Slice type ID for this slice. It's empty when the compact ID is set
 17/// (<paramref name="compactId"/> is not -1).</param>
 18/// <param name="compactId">The Slice compact type ID for this slice, or -1 if the slice has no compact ID.</param>
 19/// <param name="bytes">The encoded bytes for this slice.</param>
 20/// <param name="hasOptionalMembers">Whether or not the slice contains optional members.</param>
 21/// <param name="isLastSlice">Whether or not this is the last slice.</param>
 122public sealed record class SliceInfo(
 123    string typeId,
 124    int compactId,
 125    byte[] bytes,
 126    bool hasOptionalMembers,
 127    bool isLastSlice)
 28{
 29    /// <summary>
 30    /// Gets or sets the class instances referenced by this slice.
 31    /// </summary>
 132    public Value[] instances { get; set; } = [];
 33}