< Summary

Information
Class: Elsa.Workflows.GuidIdentityGenerator
Assembly: Elsa.Workflows.Core
File(s): /home/runner/work/elsa-core/elsa-core/src/modules/Elsa.Workflows.Core/Services/GuidIdentityGenerator.cs
Line coverage
0%
Covered lines: 0
Uncovered lines: 1
Coverable lines: 1
Total lines: 10
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
GenerateId()100%210%

File(s)

/home/runner/work/elsa-core/elsa-core/src/modules/Elsa.Workflows.Core/Services/GuidIdentityGenerator.cs

#LineLine coverage
 1namespace Elsa.Workflows;
 2
 3/// <summary>
 4/// Generates a unique identifier using <see cref="Guid"/>.
 5/// </summary>
 6public class GuidIdentityGenerator : IIdentityGenerator
 7{
 8    /// <inheritdoc />
 09    public string GenerateId() => Guid.NewGuid().ToString("N");
 10}

Methods/Properties

GenerateId()