• Home
  • Features
  • Pricing
  • Docs
  • Announcements
  • Sign In

KSP-CKAN / CKAN / 16885924002

11 Aug 2025 04:23PM UTC coverage: 56.351%. Remained the same
16885924002

push

github

HebaruSan
Merge #4416 Recommendations of full changeset in ConsoleUI

4559 of 8419 branches covered (54.15%)

Branch coverage included in aggregate %.

1 of 2 new or added lines in 2 files covered. (50.0%)

1 existing line in 1 file now uncovered.

9712 of 16906 relevant lines covered (57.45%)

1.17 hits per line

Source File
Press 'n' to go to next uncovered line, 'b' for previous

37.5
/Core/Extensions/DictionaryExtensions.cs
1
using System;
2
using System.Linq;
3
using System.Collections.Generic;
4

5
namespace CKAN.Extensions
6
{
7
    public static class DictionaryExtensions
8
    {
9
        public static bool DictionaryEquals<K, V>(this IDictionary<K, V>? a,
10
                                                  IDictionary<K, V>?      b)
11
            => a == null ? b == null
2!
12
                         : b != null && a.Count == b.Count
13
                           && a.Keys.All(b.ContainsKey)
14
                           && b.Keys.All(k => a.ContainsKey(k)
×
15
                                              && EqualityComparer<V>.Default.Equals(a[k], b[k]));
16

17
        public static IEnumerable<Tuple<K, V1, V2>> KeyZip<K, V1, V2>(this IDictionary<K, V1> source,
18
                                                                      IDictionary<K, V2>      other)
19
            where K : notnull
UNCOV
20
            => source.Select(kvp => other.TryGetValue(kvp.Key, out V2? val2)
×
21
                                        ? Tuple.Create(kvp.Key, kvp.Value, val2)
22
                                        : null)
23
                     .OfType<Tuple<K, V1, V2>>();
24

25
    }
26
}
STATUS · Troubleshooting · Open an Issue · Sales · Support · CAREERS · ENTERPRISE · START FREE · SCHEDULE DEMO
ANNOUNCEMENTS · TWITTER · TOS & SLA · Supported CI Services · What's a CI service? · Automated Testing

© 2026 Coveralls, Inc