< Summary - pva.SuperV

Information
Class: pva.Helpers.Extensions.IEnumerableExtensions
Assembly: pva.Helpers
File(s): /home/runner/work/pva.SuperV/pva.SuperV/pva.Helpers/Extensions/IEnumerableExtensions.cs
Tag: dotnet-ubuntu_18869653307
Line coverage
100%
Covered lines: 6
Uncovered lines: 0
Coverable lines: 6
Total lines: 18
Line coverage: 100%
Branch coverage
100%
Covered branches: 2
Total branches: 2
Branch coverage: 100%
Method coverage

Feature is only available for sponsors

Upgrade to PRO version

Metrics

MethodBranch coverage Crap Score Cyclomatic complexity Line coverage
ForEach(...)100%22100%

File(s)

/home/runner/work/pva.SuperV/pva.SuperV/pva.Helpers/Extensions/IEnumerableExtensions.cs

#LineLine coverage
 1namespace pva.Helpers.Extensions
 2{
 3    /// <summary>Extension methods on enumerables.</summary>
 4    public static class IEnumerableExtensions
 5    {
 6        /// <summary>Allows to use foreach at the end of a LINQ expression on an enumerable</summary>
 7        /// <typeparam name="T">The type of the items contained in enumerable.</typeparam>
 8        /// <param name="enumerable">The enumerable to be iterated on.</param>
 9        /// <param name="action">The action to be invoked for each item in enumerable. It receives the item as arg.</par
 10        public static void ForEach<T>(this IEnumerable<T> enumerable, Action<T> action)
 402211        {
 2064412            foreach (T item in enumerable)
 429213            {
 429214                action(item);
 428615            }
 401616        }
 17    }
 18}