< Summary

Information
Class: Elsa.Api.Client.Converters.VersionOptionsTypeConverter
Assembly: Elsa.Api.Client
File(s): /home/runner/work/elsa-core/elsa-core/src/clients/Elsa.Api.Client/Converters/VersionOptionsTypeConverter.cs
Line coverage
0%
Covered lines: 0
Uncovered lines: 2
Coverable lines: 2
Total lines: 17
Line coverage: 0%
Branch coverage
0%
Covered branches: 0
Total branches: 4
Branch coverage: 0%
Method coverage

Feature is only available for sponsors

Upgrade to PRO version

Metrics

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

File(s)

/home/runner/work/elsa-core/elsa-core/src/clients/Elsa.Api.Client/Converters/VersionOptionsTypeConverter.cs

#LineLine coverage
 1using System.ComponentModel;
 2using System.Globalization;
 3using Elsa.Api.Client.Shared.Models;
 4
 5namespace Elsa.Api.Client.Converters;
 6
 7/// <summary>
 8/// A type converter that converts <see cref="VersionOptions"/> to and from strings.
 9/// </summary>
 10public class VersionOptionsTypeConverter : TypeConverter
 11{
 12    /// <inheritdoc />
 013    public override bool CanConvertFrom(ITypeDescriptorContext? context, Type sourceType) => sourceType == typeof(string
 14
 15    /// <inheritdoc />
 016    public override object ConvertFrom(ITypeDescriptorContext? context, CultureInfo? culture, object value) => value is 
 17}