< Summary

Information
Class: Elsa.Extensions.ExpressionOptionsExtensions
Assembly: Elsa.Expressions
File(s): /home/runner/work/elsa-core/elsa-core/src/modules/Elsa.Expressions/Extensions/ExpressionOptionsExtensions.cs
Line coverage
100%
Covered lines: 2
Uncovered lines: 0
Coverable lines: 2
Total lines: 18
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
AddTypeAlias(...)100%11100%
AddTypeAlias(...)100%11100%

File(s)

/home/runner/work/elsa-core/elsa-core/src/modules/Elsa.Expressions/Extensions/ExpressionOptionsExtensions.cs

#LineLine coverage
 1using Elsa.Expressions.Options;
 2using JetBrains.Annotations;
 3
 4// ReSharper disable once CheckNamespace
 5namespace Elsa.Extensions;
 6
 7/// <summary>
 8/// Extends <see cref="ExpressionOptions"/>.
 9/// </summary>
 10[PublicAPI]
 11public static class ExpressionOptionsExtensions
 12{
 13    /// <summary>
 14    /// Register type <typeparamref name="T"/> with the specified alias.
 15    /// </summary>
 2416    public static void AddTypeAlias<T>(this ExpressionOptions options) => options.RegisterTypeAlias(typeof(T), typeof(T)
 6117    public static void AddTypeAlias<T>(this ExpressionOptions options, string alias) => options.RegisterTypeAlias(typeof
 18}