< Summary

Information
Class: Elsa.Expressions.Liquid.Helpers.LiquidPropertyAccessor
Assembly: Elsa.Expressions.Liquid
File(s): /home/runner/work/elsa-core/elsa-core/src/modules/Elsa.Expressions.Liquid/Helpers/LiquidPropertyAccessor.cs
Line coverage
0%
Covered lines: 0
Uncovered lines: 2
Coverable lines: 2
Total lines: 16
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
.ctor(...)100%210%

File(s)

/home/runner/work/elsa-core/elsa-core/src/modules/Elsa.Expressions.Liquid/Helpers/LiquidPropertyAccessor.cs

#LineLine coverage
 1using Fluid.Values;
 2
 3namespace Elsa.Expressions.Liquid.Helpers;
 4
 5/// <summary>
 6/// Can be used to provide a factory to return a value based on a property name
 7/// that is unknown at registration time.
 8///
 9/// e.g. {{ LiquidPropertyAccessor.MyPropertyName }} (MyPropertyName will be passed as the identifier argument to the fa
 10/// </summary>
 11public class LiquidPropertyAccessor : LiquidObjectAccessor<FluidValue>
 12{
 013    public LiquidPropertyAccessor(Func<string, Task<FluidValue>> getter) : base(getter!)
 14    {
 015    }
 16}