< Summary

Information
Class: Elsa.Expressions.Models.MemoryBlock
Assembly: Elsa.Expressions
File(s): /home/runner/work/elsa-core/elsa-core/src/modules/Elsa.Expressions/Models/MemoryBlock.cs
Line coverage
100%
Covered lines: 8
Uncovered lines: 0
Coverable lines: 8
Total lines: 33
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
.ctor()100%11100%
.ctor(...)100%11100%
get_Value()100%11100%
get_Metadata()100%11100%

File(s)

/home/runner/work/elsa-core/elsa-core/src/modules/Elsa.Expressions/Models/MemoryBlock.cs

#LineLine coverage
 1namespace Elsa.Expressions.Models;
 2
 3/// <summary>
 4/// Represents a piece of memory within a memory register
 5/// </summary>
 6public class MemoryBlock
 7{
 8    /// <summary>
 9    /// Constructor.
 10    /// </summary>
 156611    public MemoryBlock()
 12    {
 156613    }
 14
 15    /// <summary>
 16    /// Constructor.
 17    /// </summary>
 15518    public MemoryBlock(object? value, object? metadata = null)
 19    {
 15520        Value = value;
 15521        Metadata = metadata;
 15522    }
 23
 24    /// <summary>
 25    /// The value stored in this block.
 26    /// </summary>
 312427    public object? Value { get; set; }
 28
 29    /// <summary>
 30    /// Optional metadata about this block.
 31    /// </summary>
 37932    public object? Metadata { get; set; }
 33}