< Summary

Information
Class: GistBackend.Utils.RssFeedUtils
Assembly: GistBackend
File(s): /home/runner/work/the-gist-of-it-sec/the-gist-of-it-sec/backend/GistBackend/Utils/RssFeedUtils.cs
Line coverage
0%
Covered lines: 0
Uncovered lines: 1
Coverable lines: 1
Total lines: 12
Line coverage: 0%
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
ContainsClassSpecifier(...)100%210%

File(s)

/home/runner/work/the-gist-of-it-sec/the-gist-of-it-sec/backend/GistBackend/Utils/RssFeedUtils.cs

#LineLine coverage
 1namespace GistBackend.Utils;
 2
 3public class RssFeedUtils
 4{
 5    /*
 6     * uses the “whole-word class” pattern: it normalizes whitespace, pads with spaces, then checks for ' className '.
 7     * This matches the class as a distinct token within a space-separated class list,
 8     * avoiding false positives like ' classNameExtra ' or ' extraClassName '.
 9    */
 10    public static string ContainsClassSpecifier(string className) =>
 011        $"contains(concat(' ', normalize-space(@class), ' '), ' {className} ')";
 12}