about summary refs log tree commit homepage
path: root/t/search.t
diff options
context:
space:
mode:
authorEric Wong <e@80x24.org>2020-09-24 10:13:39 +0000
committerEric Wong <e@80x24.org>2020-09-24 21:18:44 +0000
commit2255a4ad2fa2384c1f4cec6dd267383396cbc945 (patch)
treee5d00c41abb08184d0b44584822a1e8160d82ac0 /t/search.t
parent8d7216a0c278272d7d3525f4bb0ec1fa74486698 (diff)
downloadpublic-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.t4
1 files changed, 2 insertions, 2 deletions
diff --git a/t/search.t b/t/search.t
index 8df8a202..a66aec36 100644
--- a/t/search.t
+++ b/t/search.t
@@ -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');
         }