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

lucaslorentz / auto-compute / 18248126920

04 Oct 2025 06:41PM UTC coverage: 83.401% (-0.2%) from 83.552%
18248126920

push

github

lucaslorentz
Add EmptyEntityContext that doesn't track

0 of 5 new or added lines in 2 files covered. (0.0%)

1849 of 2217 relevant lines covered (83.4%)

863.13 hits per line

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

0.0
/src/LLL.AutoCompute/EntityContexts/EmptyEntityContext.cs
1
using System.Linq.Expressions;
2

3
namespace LLL.AutoCompute.EntityContexts;
4

5
public class EmptyEntityContext(
6
    Expression expression,
7
    IObservedEntityType entityType)
NEW
8
    : EntityContext(expression)
×
9
{
NEW
10
    public override IObservedEntityType EntityType => entityType;
×
NEW
11
    public override bool IsTrackingChanges => false;
×
12

13
    public override async Task<IReadOnlyCollection<object>> GetParentAffectedEntities(object input, IncrementalContext incrementalContext)
14
    {
NEW
15
        throw new InvalidOperationException("Can't call GetParentAffectedEntities on EmptyEntityContext");
×
16
    }
17

18
    public override async Task EnrichIncrementalContextTowardsRootAsync(object input, IReadOnlyCollection<object> entities, IncrementalContext incrementalContext)
19
    {
20
    }
21

22
    public override void MarkNavigationToLoadAll()
23
    {
24
    }
25
}
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