< Summary

Information
Class: Allyaria.Theming.Types.ContrastResult
Assembly: Allyaria.Theming
File(s): /home/runner/work/allyaria/allyaria/src/Allyaria.Theming/Types/ContrastResult.cs
Line coverage
100%
Covered lines: 3
Uncovered lines: 0
Coverable lines: 3
Total lines: 17
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
get_ForegroundColor()100%11100%
get_ContrastRatio()100%11100%
get_IsMinimumMet()100%11100%

File(s)

/home/runner/work/allyaria/allyaria/src/Allyaria.Theming/Types/ContrastResult.cs

#LineLine coverage
 1namespace Allyaria.Theming.Types;
 2
 3/// <summary>
 4/// Immutable result that describes the outcome of a contrast resolution operation, including the derived foreground col
 5/// the achieved contrast ratio, and whether the minimum requirement was satisfied.
 6/// </summary>
 7/// <param name="ForegroundColor">The resolved foreground color (opaque).</param>
 8/// <param name="ContrastRatio">The computed contrast ratio between the foreground and background colors.</param>
 9/// <param name="IsMinimumMet">
 10/// <c>true</c> if the computed ratio meets or exceeds the required minimum; otherwise
 11/// <c>false</c>.
 12/// </param>
 13internal readonly record struct ContrastResult(
 5818814    HexColor ForegroundColor,
 415    double ContrastRatio,
 6353416    bool IsMinimumMet
 17);