diff options
author | Eric Wong <e@80x24.org> | 2020-09-24 10:13:39 +0000 |
---|---|---|
committer | Eric Wong <e@80x24.org> | 2020-09-24 21:18:44 +0000 |
commit | 2255a4ad2fa2384c1f4cec6dd267383396cbc945 (patch) | |
tree | e5d00c41abb08184d0b44584822a1e8160d82ac0 /t/search.t | |
parent | 8d7216a0c278272d7d3525f4bb0ec1fa74486698 (diff) | |
download | public-inbox-2255a4ad2fa2384c1f4cec6dd267383396cbc945.tar.gz |
This switch is still undocumented, but we can reduce the scope of our Xapian docdata dependency by moving its only caller to SearchIdx. This reduces the amount of code loaded by read-only code paths.
Diffstat (limited to 't/search.t')
-rw-r--r-- | t/search.t | 4 |
1 files changed, 2 insertions, 2 deletions
@@ -332,13 +332,13 @@ $ibx->with_umask(sub { like($smsg->{to}, qr/\blist\@example\.com\b/, 'to appears'); my $doc = $m->get_document; my $col = PublicInbox::Search::BYTES(); - my $bytes = PublicInbox::Smsg::get_val($doc, $col); + my $bytes = PublicInbox::SearchIdx::get_val($doc, $col); like($bytes, qr/\A[0-9]+\z/, '$bytes stored as digit'); ok($bytes > 0, '$bytes is > 0'); is($bytes, $smsg->{bytes}, 'bytes Xapian value matches Over'); $col = PublicInbox::Search::UID(); - my $uid = PublicInbox::Smsg::get_val($doc, $col); + my $uid = PublicInbox::SearchIdx::get_val($doc, $col); is($uid, $smsg->{num}, 'UID column matches {num}'); is($uid, $m->get_docid, 'UID column matches docid'); } |