diff options
author | Eric Wong <e@80x24.org> | 2019-01-10 21:41:55 +0000 |
---|---|---|
committer | Eric Wong <e@80x24.org> | 2019-01-10 21:41:55 +0000 |
commit | b0e5062d43a96372801713ef78a78d6a1bc852bc (patch) | |
tree | 76ea973c854c945989924a40905c855258a6419c /t | |
parent | f6fea847bf71e5cc247497c95cdb73ccc74466d2 (diff) | |
parent | 59fd8cf084c6a67d9801c888a183eb83b552692d (diff) | |
download | public-inbox-b0e5062d43a96372801713ef78a78d6a1bc852bc.tar.gz |
* commit 'mem': view: more culling for search threads over: cull unneeded fields for get_thread searchmsg: remove unused fields for PSGI in Xapian results searchview: drop unused {seen} hashref searchmsg: remove Xapian::Document field searchmsg: get rid of termlist scanning for mid httpd: remove psgix.harakiri reference
Diffstat (limited to 't')
-rw-r--r-- | t/search.t | 10 |
1 files changed, 6 insertions, 4 deletions
@@ -341,7 +341,7 @@ $ibx->with_umask(sub { is(scalar(@$res), 1, "searched $pfx successfully for From:"); foreach my $smsg (@$res) { - like($smsg->from, qr/Laggy Sender/, + like($smsg->from_name, qr/Laggy Sender/, "From appears with $pfx"); } } @@ -358,16 +358,18 @@ $ibx->with_umask(sub { $res = $ro->query('q:theatre'); is(scalar(@$res), 1, 'only one quoted body'); - like($res->[0]->from, qr/\AQuoter/, 'got quoted body') if scalar(@$res); + like($res->[0]->from_name, qr/\AQuoter/, + 'got quoted body') if (scalar(@$res)); $res = $ro->query('nq:theatre'); is(scalar @$res, 1, 'only one non-quoted body'); - like($res->[0]->from, qr/\ANon-Quoter/, 'got non-quoted body') if scalar(@$res); + like($res->[0]->from_name, qr/\ANon-Quoter/, + 'got non-quoted body') if (scalar(@$res)); foreach my $pfx (qw(b: bs:)) { $res = $ro->query($pfx . 'theatre'); is(scalar @$res, 2, "searched both bodies for $pfx"); - like($res->[0]->from, qr/\ANon-Quoter/, + like($res->[0]->from_name, qr/\ANon-Quoter/, "non-quoter first for $pfx") if scalar(@$res); } } |