< Summary

Information
Class: Elsa.Api.Client.Resources.Scripting.Extensions.ExpressionDescriptorExtensions
Assembly: Elsa.Api.Client
File(s): /home/runner/work/elsa-core/elsa-core/src/clients/Elsa.Api.Client/Resources/Scripting/Extensions/ExpressionExtensions.cs
Line coverage
0%
Covered lines: 0
Uncovered lines: 1
Coverable lines: 1
Total lines: 16
Line coverage: 0%
Branch coverage
0%
Covered branches: 0
Total branches: 2
Branch coverage: 0%
Method coverage

Feature is only available for sponsors

Upgrade to PRO version

Metrics

MethodBranch coverage Crap Score Cyclomatic complexity Line coverage
GetMonacoLanguage(...)0%620%

File(s)

/home/runner/work/elsa-core/elsa-core/src/clients/Elsa.Api.Client/Resources/Scripting/Extensions/ExpressionExtensions.cs

#LineLine coverage
 1using Elsa.Api.Client.Resources.Scripting.Models;
 2using JetBrains.Annotations;
 3
 4namespace Elsa.Api.Client.Resources.Scripting.Extensions;
 5
 6/// <summary>
 7/// Provides extension methods for <see cref="Expression"/>.
 8/// </summary>
 9[PublicAPI]
 10public static class ExpressionDescriptorExtensions
 11{
 12    /// <summary>
 13    /// Gets the expression language to use for the Monaco editor.
 14    /// </summary>
 015    public static string? GetMonacoLanguage(this ExpressionDescriptor descriptor) => descriptor.Properties.TryGetValue("
 16}