[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[nongnu] elpa/logview f593647eb7 205/259: Fix the test added in commit f
From: |
ELPA Syncer |
Subject: |
[nongnu] elpa/logview f593647eb7 205/259: Fix the test added in commit fb7762b: use a more permissive regexp and make sure that all three log entries are recognized. |
Date: |
Fri, 31 Jan 2025 07:02:14 -0500 (EST) |
branch: elpa/logview
commit f593647eb78cb6f2cce8a0a9d12f66ca59c9df4a
Author: Paul Pogonyshev <pogonyshev@gmail.com>
Commit: Paul Pogonyshev <pogonyshev@gmail.com>
Fix the test added in commit fb7762b: use a more permissive regexp and make
sure that all three log entries are recognized.
---
test/logview.el | 15 +++++++++++++--
1 file changed, 13 insertions(+), 2 deletions(-)
diff --git a/test/logview.el b/test/logview.el
index 7bea5df334..2bc648d1a8 100644
--- a/test/logview.el
+++ b/test/logview.el
@@ -152,11 +152,22 @@
(ert-deftest logview-test-custom-submode-with-special-regexp ()
(logview--test-with-file "custom/2.log"
:extra-customizations '((logview-additional-submodes
- '(("custom" (format . "TIMESTAMP IGNORED LEVEL T:
<<RX:THREAD:[^-]+>> NAME - MESSAGE") (levels . "SLF4J")))))
+ '(("custom" (format . "TIMESTAMP IGNORED LEVEL T:
<<RX:THREAD:.+?>> NAME - MESSAGE") (levels . "SLF4J")))))
(should (equal logview--submode-name "custom"))
(logview--locate-current-entry entry start
(should (and entry (equal start 1)))
- (should (equal (logview--entry-group entry start logview--name-group)
"WhateverName")))))
+ (should (equal (logview--entry-group entry start logview--name-group)
"WhateverName"))
+ (should (equal (logview--entry-group entry start logview--thread-group)
"Fake Thread")))
+ (forward-line)
+ (logview--locate-current-entry entry start
+ (should entry)
+ (should (equal (logview--entry-group entry start logview--name-group)
"LottieLockView"))
+ (should (equal (logview--entry-group entry start logview--thread-group)
"Subscription Manager Consumer Thread")))
+ (forward-line)
+ (logview--locate-current-entry entry start
+ (should entry)
+ (should (equal (logview--entry-group entry start logview--name-group)
"LottieLockView"))
+ (should (equal (logview--entry-group entry start logview--thread-group)
"pool-40-thread-1")))))
;; Bug: Logview would ignore entry lines if they didn't contain a space at the
end. This
;; would e.g. happen if you had code like 'log.info ("\n...");' in your
program.
- [nongnu] elpa/logview 4a19180676 199/259: Add a command to apply filter/view changes without closing the editor buffer., (continued)
- [nongnu] elpa/logview 4a19180676 199/259: Add a command to apply filter/view changes without closing the editor buffer., ELPA Syncer, 2025/01/31
- [nongnu] elpa/logview c8e3d3a4c1 241/259: Document the recently added commands., ELPA Syncer, 2025/01/31
- [nongnu] elpa/logview 1e2e321c1d 025/259: Describe filter commands, especially editing, in README; mention keybindings for auto-revert modes., ELPA Syncer, 2025/01/31
- [nongnu] elpa/logview 92e305fddc 063/259: Don't die with an error if 'logview-views-file' doesn't exist yet; fixes #10., ELPA Syncer, 2025/01/31
- [nongnu] elpa/logview 68857cdd2b 017/259: Add simple filter editing command., ELPA Syncer, 2025/01/31
- [nongnu] elpa/logview c14364962c 048/259: Somewhat improve timestamp option matching; in particular, don't even loop through all the option if there are no digits at the expected place at all., ELPA Syncer, 2025/01/31
- [nongnu] elpa/logview cace8921fa 038/259: Fix 'logview-append-log-file-tail' which would fail with an error if the buffer was narrowed not far from its end., ELPA Syncer, 2025/01/31
- [nongnu] elpa/logview 4008fc5085 045/259: Add license and MELPA badges to the top of README.md., ELPA Syncer, 2025/01/31
- [nongnu] elpa/logview ae429d1c38 092/259: Add commands to navigate through a view without activating it., ELPA Syncer, 2025/01/31
- [nongnu] elpa/logview 2fbc14791c 180/259: Let's rename this retarded crap again, who cares, right?, ELPA Syncer, 2025/01/31
- [nongnu] elpa/logview f593647eb7 205/259: Fix the test added in commit fb7762b: use a more permissive regexp and make sure that all three log entries are recognized.,
ELPA Syncer <=
- [nongnu] elpa/logview 9fa9405048 207/259: Make `logview-filter-edit-apply' also print a message as a confirmation that something has been done., ELPA Syncer, 2025/01/31
- [nongnu] elpa/logview 404f94a59a 210/259: Bump actions/checkout from 3 to 4, ELPA Syncer, 2025/01/31
- [nongnu] elpa/logview 8eb158ef7a 222/259: Update copyright years., ELPA Syncer, 2025/01/31
- [nongnu] elpa/logview 839dd923a3 234/259: Improve timestamp parsing to silently (after a warning) work by using UTC if `datetime` fails to determine system timezone (issue #55)., ELPA Syncer, 2025/01/31
- [nongnu] elpa/logview a9e8b4839f 228/259: Avoid byte-compilation warnings in the last commit., ELPA Syncer, 2025/01/31
- [nongnu] elpa/logview 272e5ccc13 243/259: Post-release version bump., ELPA Syncer, 2025/01/31
- [nongnu] elpa/logview aadc5beffd 248/259: Update Eldev requirement, as we depend on a certain bugfix in it after commit a2dedfa., ELPA Syncer, 2025/01/31
- [nongnu] elpa/logview aaa3c8a832 251/259: Add a command for "narrowing" to section headers; make it available from within incremental search as `M-h`., ELPA Syncer, 2025/01/31
- [nongnu] elpa/logview d0f861f717 245/259: When performing an incremental search only in messages, dim all other entry parts; make `M-m` added in the last commit only affect the current search., ELPA Syncer, 2025/01/31
- [nongnu] elpa/logview aa30df08c6 043/259: Merge pull request #4 from mcraveiro/master, ELPA Syncer, 2025/01/31