diff options
author | Eric Wong <e@80x24.org> | 2019-12-25 06:19:47 +0000 |
---|---|---|
committer | Eric Wong <e@80x24.org> | 2019-12-25 06:28:28 +0000 |
commit | a5bd6a45e4d772e81e2dd4f76d4291f74fa15230 (patch) | |
tree | 5cc1966f1f0f59f96ff2867ec395a6afdb6453f6 /t/psgi_v2.t | |
parent | 7b912e87e18c4a30be866e9abc764f71c61f29a2 (diff) | |
download | public-inbox-a5bd6a45e4d772e81e2dd4f76d4291f74fa15230.tar.gz |
The "x=A" search results endpoint finally gets test coverage.
Diffstat (limited to 't/psgi_v2.t')
-rw-r--r-- | t/psgi_v2.t | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/t/psgi_v2.t b/t/psgi_v2.t index a02b90fb..8c619cee 100644 --- a/t/psgi_v2.t +++ b/t/psgi_v2.t @@ -154,6 +154,16 @@ test_psgi(sub { $www->call(@_) }, sub { my @over = ($raw =~ m/\d{4}-\d+-\d+\s+\d+:\d+ +(?:\d+\% )?(.+)$/gm); is_deeply(\@over, [ '<a', '` <a', '` <a' ], 'threaded messages show up'); + $res = $cb->(GET('/v2test/?q=m:a-mid@b&x=A')); + is($res->code, 200, 'success with Atom search'); + SKIP: { + require_mods(qw(XML::Feed), 2); + $raw = $res->content; + my $p = XML::Feed->parse(\$raw); + is($p->format, "Atom", "parsed atom feed"); + is(scalar $p->entries, 3, "parsed three entries"); + }; + local $SIG{__WARN__} = 'DEFAULT'; $res = $cb->(GET('/v2test/a-mid@b/')); $raw = $res->content; |