< Summary

Information
Class: TeleFlow.Annotations.StateGroupAttribute
Assembly: TeleFlow.Annotations
File(s): /_/src/TeleFlow.Annotations/State/StateGroupAttribute.cs
Line coverage
0%
Covered lines: 0
Uncovered lines: 3
Coverable lines: 3
Total lines: 22
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
.ctor(...)100%210%

File(s)

/_/src/TeleFlow.Annotations/State/StateGroupAttribute.cs

#LineLine coverage
 1namespace TeleFlow.Annotations;
 2/// <summary>
 3/// Defines a stable prefix for a typed group of conversation states.
 4/// </summary>
 5[AttributeUsage(AttributeTargets.Class, AllowMultiple = false, Inherited = false)]
 6public sealed class StateGroupAttribute : TeleFlowAttribute
 7{
 8    /// <summary>
 9    /// Creates typed state group metadata.
 10    /// </summary>
 11    /// <param name="prefix">Prefix used when composing state ids for the group.</param>
 012    public StateGroupAttribute(string prefix)
 13    {
 014        ArgumentException.ThrowIfNullOrWhiteSpace(prefix);
 15        Prefix = prefix;
 016    }
 17
 18    /// <summary>
 19    /// Prefix used when composing state ids for the group.
 20    /// </summary>
 21    public string Prefix { get; }
 22}

Methods/Properties

.ctor(System.String)