Skip to content

Stop todo evaluation at given datetime#914

Closed
maknapp wants to merge 1 commit intoversion/6.0from
maknapp/fix-todo-eval-without-end
Closed

Stop todo evaluation at given datetime#914
maknapp wants to merge 1 commit intoversion/6.0from
maknapp/fix-todo-eval-without-end

Conversation

@maknapp
Copy link
Collaborator

@maknapp maknapp commented Jan 25, 2026

This is a v6 fix for #913. Should probably be fixed for v5 too. I am still trying to make sense of the TODO stuff, but I think TakeWhile was the original intention here.

@codecov
Copy link

codecov bot commented Jan 25, 2026

Codecov Report

✅ All modified and coverable lines are covered by tests.

Impacted file tree graph

@@              Coverage Diff              @@
##           version/6.0    #914     +/-   ##
=============================================
+ Coverage         69.5%   69.6%   +0.1%     
=============================================
  Files              119     119             
  Lines             4752    4752             
  Branches          1108    1108             
=============================================
+ Hits              3304    3308      +4     
+ Misses            1059    1055      -4     
  Partials           389     389             
Files with missing lines Coverage Δ
Ical.Net/Evaluation/TodoEvaluator.cs 37.7% <100.0%> (ø)

... and 1 file with indirect coverage changes

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.

.Select(x => todo.IsCompleted(x.AtMidnight().InUtc()))
.ToList();

List<bool> expected = [true, true, true, true, true, true, true, true, false, false];
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

// Jan 14-21: true (8 days) - TODO is considered completed
// Jan 22-23: false (2 days) - TODO is NOT completed

@maknapp maknapp force-pushed the maknapp/fix-todo-eval-without-end branch from 9b71d62 to 00c05e9 Compare January 27, 2026 21:41
@maknapp maknapp force-pushed the maknapp/fix-todo-eval-without-end branch from 00c05e9 to 499fcdc Compare January 27, 2026 21:42
@sonarqubecloud
Copy link

@maknapp
Copy link
Collaborator Author

maknapp commented Feb 1, 2026

This can be closed if #922 is merged because it deletes these changes.

@maknapp maknapp closed this Feb 3, 2026
@maknapp maknapp deleted the maknapp/fix-todo-eval-without-end branch February 15, 2026 15:28
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants