< Summary

Information
Class: Chronicis.Client.Utilities.SummaryEnablementState
Assembly: Chronicis.Client
File(s): /home/runner/work/chronicis/chronicis/src/Chronicis.Client/Utilities/SummaryEnablementState.cs
Line coverage
100%
Covered lines: 1
Uncovered lines: 0
Coverable lines: 1
Total lines: 13
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
IsSummaryEnabled(...)100%11100%

File(s)

/home/runner/work/chronicis/chronicis/src/Chronicis.Client/Utilities/SummaryEnablementState.cs

#LineLine coverage
 1namespace Chronicis.Client.Utilities;
 2
 3/// <summary>
 4/// Determines whether AI summary generation should be enabled based on article body content.
 5/// </summary>
 6internal static class SummaryEnablementState
 7{
 8    /// <summary>
 9    /// Returns true when AI summary generation should be enabled (body has non-whitespace content).
 10    /// </summary>
 11    public static bool IsSummaryEnabled(string? body)
 31312        => !string.IsNullOrWhiteSpace(body);
 13}

Methods/Properties

IsSummaryEnabled(System.String)