< Summary

Information
Class: SwiftCollections.Array2DState<T>
Assembly: SwiftCollections
File(s): /home/runner/work/SwiftCollections/SwiftCollections/src/SwiftCollections/Serialization/State/Array2DState.cs
Line coverage
100%
Covered lines: 5
Uncovered lines: 0
Coverable lines: 5
Total lines: 31
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/Array2DState.cs

#LineLine coverage
 1using MemoryPack;
 2using System;
 3using System.Text.Json.Serialization;
 4
 5namespace SwiftCollections;
 6
 7[Serializable]
 8[MemoryPackable]
 9public readonly partial struct Array2DState<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 T[] Data;
 22
 23    [JsonConstructor]
 24    [MemoryPackConstructor]
 25    public Array2DState(int width, int height, T[] data)
 1226    {
 1227        Width = width;
 1228        Height = height;
 1229        Data = data;
 1230    }
 31}