< Summary

Information
Class: SwiftCollections.Array3DState<T>
Assembly: SwiftCollections
File(s): /home/runner/work/SwiftCollections/SwiftCollections/src/SwiftCollections/Serialization/State/Array3DState.cs
Line coverage
100%
Covered lines: 6
Uncovered lines: 0
Coverable lines: 6
Total lines: 36
Line coverage: 100%
Branch coverage
N/A
Covered branches: 0
Total branches: 0
Branch coverage: N/A
Method coverage

Feature is only available for sponsors

Upgrade to PRO version

Metrics

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

File(s)

/home/runner/work/SwiftCollections/SwiftCollections/src/SwiftCollections/Serialization/State/Array3DState.cs

#LineLine coverage
 1using MemoryPack;
 2using System;
 3using System.Text.Json.Serialization;
 4
 5namespace SwiftCollections;
 6
 7[Serializable]
 8[MemoryPackable]
 9public readonly partial struct Array3DState<T>
 10{
 11    [JsonInclude]
 12    [MemoryPackInclude]
 13    public readonly int Width;
 14
 15    [JsonInclude]
 16    [MemoryPackInclude]
 17    public readonly int Height;
 18
 19    [JsonInclude]
 20    [MemoryPackInclude]
 21    public readonly int Depth;
 22
 23    [JsonInclude]
 24    [MemoryPackInclude]
 25    public readonly T[] Data;
 26
 27    [JsonConstructor]
 28    [MemoryPackConstructor]
 29    public Array3DState(int width, int height, int depth, T[] data)
 430    {
 431        Width = width;
 432        Height = height;
 433        Depth = depth;
 434        Data = data;
 435    }
 36}