* [PATCH 2/3] t/nntpd: add test for the XPATH command
2020-09-11 7:32 5% [PATCH 0/3] mostly NNTP stuff Eric Wong
@ 2020-09-11 7:32 7% ` Eric Wong
0 siblings, 0 replies; 2+ results
From: Eric Wong @ 2020-09-11 7:32 UTC (permalink / raw)
To: meta
It's only in RFC 2980 (not 977 or 3977), but Net::NNTP has
supported it since 2001, at least. We'll be making changes
to avoid pathological behavior, so test it, first.
---
t/nntpd.t | 2 ++
1 file changed, 2 insertions(+)
diff --git a/t/nntpd.t b/t/nntpd.t
index a3d974cf..14db1a93 100644
--- a/t/nntpd.t
+++ b/t/nntpd.t
@@ -295,6 +295,8 @@ Date: Fri, 02 Oct 1993 00:00:00 +0000
'cross newsgroup BODY by Message-ID');
ok($n->head('<testmessage@example.com>'),
'cross newsgroup HEAD by Message-ID');
+ is($n->xpath('<testmessage@example.com>'), 'x.y.z/1', 'xpath hit');
+ is($n->xpath('<non-existent@example.com>'), undef, 'xpath miss');
# pipelined requests:
{
^ permalink raw reply related [relevance 7%]
* [PATCH 0/3] mostly NNTP stuff
@ 2020-09-11 7:32 5% Eric Wong
2020-09-11 7:32 7% ` [PATCH 2/3] t/nntpd: add test for the XPATH command Eric Wong
0 siblings, 1 reply; 2+ results
From: Eric Wong @ 2020-09-11 7:32 UTC (permalink / raw)
To: meta
Just a couple of cleanups and small tweaks while I figure out
how to get the NNTP code to support tens of thousands of
inboxes; since it's hampered by the most existing code for
dealing with mere dozens of inboxes... I think configuring
detached index support will be a requirement.
Eric Wong (3):
treewide: avoid `goto &NAME' for tail recursion
t/nntpd: add test for the XPATH command
nntp: share more code between art_lookup callers
lib/PublicInbox/DS.pm | 4 ++--
lib/PublicInbox/Eml.pm | 2 +-
lib/PublicInbox/ExtMsg.pm | 6 ++---
lib/PublicInbox/NNTP.pm | 44 ++++++++++++++---------------------
lib/PublicInbox/SolverGit.pm | 32 ++++++++++++-------------
lib/PublicInbox/V2Writable.pm | 4 ++--
lib/PublicInbox/View.pm | 2 +-
lib/PublicInbox/Watch.pm | 4 ++--
t/nntpd.t | 2 ++
9 files changed, 47 insertions(+), 53 deletions(-)
^ permalink raw reply [relevance 5%]
Results 1-2 of 2 | reverse | options above
-- pct% links below jump to the message on this page, permalinks otherwise --
2020-09-11 7:32 5% [PATCH 0/3] mostly NNTP stuff Eric Wong
2020-09-11 7:32 7% ` [PATCH 2/3] t/nntpd: add test for the XPATH command Eric Wong
Code repositories for project(s) associated with this public inbox
https://80x24.org/public-inbox.git
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).