< Summary

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

#LineLine coverage
 1using MemoryPack;
 2using System;
 3using System.Text.Json.Serialization;
 4
 5namespace SwiftCollections;
 6
 7[Serializable]
 8[MemoryPackable]
 9public readonly partial struct SwiftArrayState<T>
 10{
 11    [JsonInclude]
 12    [MemoryPackInclude]
 13    public readonly T[] Items;
 14
 15    [JsonConstructor]
 16    [MemoryPackConstructor]
 17    public SwiftArrayState(T[] items)
 7318    {
 7319        Items = items;
 7320    }
 21}

Methods/Properties

.ctor(T[])