diff options
author | Eric Wong <e@80x24.org> | 2021-06-23 07:14:20 -0400 |
---|---|---|
committer | Eric Wong <e@80x24.org> | 2021-06-23 19:24:48 +0000 |
commit | 4d594e98063aaad1ce9a90709af7edc5c44a0163 (patch) | |
tree | 50e8ac2cb3b74405ae66bf022f10001fe9c69d32 /t/lei_store.t | |
parent | 2016078cefa7e4438217e54bb0421a5d5f0b151f (diff) | |
download | public-inbox-4d594e98063aaad1ce9a90709af7edc5c44a0163.tar.gz |
This allows us to simplify callers throughout, and exceptions are can no longer be silently hidden. MiscSearch now uses xap_terms for looking up eidx_key terms for a code reduction. We also simplify LeiStore->_msg_kw for runtime use by moving the MsetIterator handling into t/lei_store.t test case.
Diffstat (limited to 't/lei_store.t')
-rw-r--r-- | t/lei_store.t | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/t/lei_store.t b/t/lei_store.t index db94f6da..73b5c74d 100644 --- a/t/lei_store.t +++ b/t/lei_store.t @@ -31,7 +31,8 @@ $sto->done; is($mset->size, 1, 'search works'); is_deeply($es->mset_to_artnums($mset), [ $msgs->[0]->{num} ], 'mset_to_artnums'); - my @kw = $es->msg_keywords(($mset->items)[0]); + my $mi = ($mset->items)[0]; + my @kw = PublicInbox::Search::xap_terms('K', $mi->get_document); is_deeply(\@kw, [], 'no flags'); } |