]> Sergey Matveev's repositories - public-inbox.git/commit
lei import: force store, improve test diagnostics
authorEric Wong <e@80x24.org>
Thu, 25 Mar 2021 04:20:24 +0000 (06:20 +0200)
committerEric Wong <e@80x24.org>
Thu, 25 Mar 2021 17:59:03 +0000 (17:59 +0000)
commitc1b912dea25f48958434f1e85337029b0959fc83
tree108147df9e3c723efc906b9afb7a5c2a1f23a54f
parent64b1ce9f94127fc144d6205bb572fe43b4b552c2
lei import: force store, improve test diagnostics

"lei import" should never be without a {sto}, and *_done should
not be called multiple times, so ensure we can fail if it's
missing.

Update some existing tests to complain loudly by introducing a
handy "xbail" function which wraps "explain" and BAIL_OUT.
BAIL_OUT was painful to type and concatenating the result of
"explain" doesn't work as I thought it would since "explain"
always returns an array, and BAIL_OUT only accepts a single
scalar arg (unlike "die").
lib/PublicInbox/LeiImport.pm
lib/PublicInbox/TestCommon.pm
t/lei-mark.t
t/lei-q-kw.t