< Summary

Information
Class: Trailblazer.Pathing.ChartOwnerUtility
Assembly: Trailblazer
File(s): /home/runner/work/Trailblazer/Trailblazer/src/Trailblazer/Pathing/Chart/ChartOwnerUtility.cs
Line coverage
100%
Covered lines: 5
Uncovered lines: 0
Coverable lines: 5
Total lines: 21
Line coverage: 100%
Branch coverage
100%
Covered branches: 6
Total branches: 6
Branch coverage: 100%
Method coverage

Feature is only available for sponsors

Upgrade to PRO version

Metrics

MethodBranch coverage Crap Score Cyclomatic complexity Line coverage
AddOwners(...)100%66100%

File(s)

/home/runner/work/Trailblazer/Trailblazer/src/Trailblazer/Pathing/Chart/ChartOwnerUtility.cs

#LineLine coverage
 1using SwiftCollections;
 2
 3namespace Trailblazer.Pathing;
 4
 5/// <summary>
 6/// Copies chart-owner ids between pooled SwiftCollections without relying on bulk-add helpers.
 7/// </summary>
 8internal static class ChartOwnerUtility
 9{
 10    /// <summary>
 11    /// Copies chart-owner ids into the destination set using deterministic per-item insertion.
 12    /// </summary>
 13    internal static void AddOwners(SwiftHashSet<string> destination, SwiftHashSet<string>? source)
 14    {
 306015        if (destination == null || source == null)
 216            return;
 17
 1223418        foreach (string owner in source)
 305919            destination.Add(owner);
 305820    }
 21}