diff options
| author | Craig Jennings <c@cjennings.net> | 2026-04-30 09:25:18 -0500 |
|---|---|---|
| committer | Craig Jennings <c@cjennings.net> | 2026-04-30 09:25:18 -0500 |
| commit | 467a6d63f44ba835a94e7580adff9ff6b2b1a1eb (patch) | |
| tree | 1399981f7689280884229a96acce6225dbd2aefd /tests/test-integration-buffer-diff.el | |
| parent | f90a087d5025952f0ca1b81d322f29891a40e540 (diff) | |
| download | dotemacs-467a6d63f44ba835a94e7580adff9ff6b2b1a1eb.tar.gz dotemacs-467a6d63f44ba835a94e7580adff9ff6b2b1a1eb.zip | |
test(config-utilities): cover validate-timestamps and format-report helpers
Two test files covering the extracted timestamp-validation helpers.
cj/--validate-timestamps-in-buffer (8 tests): empty buffer no-op,
buffer with no timestamps, buffer with all valid timestamps,
DEADLINE flagged with "DEADLINE" property, SCHEDULED flagged with
"SCHEDULED", inline-timestamp flagged with "inline timestamp",
multiple invalid collected in document order, mixed valid+invalid
returning only the invalid one. Tests use real org parsing and
mock org-time-string-to-absolute at the boundary so an arbitrary
timestamp can be marked invalid for a given test.
cj/--format-validation-report-section (4 tests): no-entries says
"No invalid timestamps found", single-entry produces the file: link
+ Property/Type + Invalid timestamp lines, multiple-entry preserves
input order, every section ends with a trailing blank line.
Diffstat (limited to 'tests/test-integration-buffer-diff.el')
0 files changed, 0 insertions, 0 deletions
