< Summary

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

#LineLine coverage
 1using MemoryPack;
 2using System;
 3using System.Collections.Generic;
 4using System.Text.Json.Serialization;
 5
 6namespace SwiftCollections;
 7
 8[Serializable]
 9[MemoryPackable]
 10public readonly partial struct SwiftDictionaryState<TKey, TValue>
 11{
 12    [JsonInclude]
 13    [MemoryPackInclude]
 14    public readonly KeyValuePair<TKey, TValue>[] Items;
 15
 16    [JsonConstructor]
 17    [MemoryPackConstructor]
 18    public SwiftDictionaryState(KeyValuePair<TKey, TValue>[] items)
 2919    {
 2920        Items = items;
 2921    }
 22}