• Home
  • Features
  • Pricing
  • Docs
  • Announcements
  • Sign In

lucaslorentz / auto-compute / 11750808709

08 Nov 2024 11:01PM UTC coverage: 81.803% (+0.4%) from 81.44%
11750808709

push

github

lucaslorentz
Add initial support for computed navigations and observers

151 of 309 new or added lines in 14 files covered. (48.87%)

12 existing lines in 5 files now uncovered.

1452 of 1775 relevant lines covered (81.8%)

116.37 hits per line

Source File
Press 'n' to go to next uncovered line, 'b' for previous

85.71
/src/LLL.AutoCompute/ChangeCalculations/CurrentValueChangeCalculation.cs
1

2
namespace LLL.AutoCompute.ChangeCalculations;
3

4
public record class CurrentValueChangeCalculation<TValue>(bool incremental)
68✔
5
    : IChangeCalculation<TValue, TValue>
6
{
7
    public bool IsIncremental => incremental;
60✔
8
    public bool PreLoadEntities => true;
48✔
9

10
    public TValue GetChange(IComputedValues<TValue> computedValues)
11
    {
12
        return computedValues.GetCurrentValue();
64✔
13
    }
14

15
    public bool IsNoChange(TValue result)
16
    {
17
        return false;
64✔
18
    }
19

20
    public TValue DeltaChange(TValue previous, TValue current)
21
    {
UNCOV
22
        return current;
×
23
    }
24

25
    public TValue ApplyChange(TValue value, TValue change)
26
    {
27
        return change;
64✔
28
    }
29
}
STATUS · Troubleshooting · Open an Issue · Sales · Support · CAREERS · ENTERPRISE · START FREE · SCHEDULE DEMO
ANNOUNCEMENTS · TWITTER · TOS & SLA · Supported CI Services · What's a CI service? · Automated Testing

© 2026 Coveralls, Inc