]> Sergey Matveev's repositories - public-inbox.git/commit
testcommon: add require_mods method and use it
authorEric Wong <e@80x24.org>
Sun, 22 Dec 2019 22:17:37 +0000 (22:17 +0000)
committerEric Wong <e@80x24.org>
Tue, 24 Dec 2019 03:47:01 +0000 (03:47 +0000)
commita09f678d8254064af7ca6dcfb3c3f84b5ae37b51
treec32233ae88dbaa3b914812a80f539054d7f086da
parentf1259e56d75b8f06a40fb466bee51a399cc317c5
testcommon: add require_mods method and use it

This cuts down on lines of code in individual test cases and
fixes some misnamed error messages by using "$0" consistently.

This will also provide us with a method of swapping out
dependencies which provide equivalent functionality (e.g
"Xapian" SWIG can replace "Search::Xapian" XS bindings).
48 files changed:
lib/PublicInbox/TestCommon.pm
t/altid.t
t/altid_v2.t
t/convert-compact.t
t/edit.t
t/filter_rubylang.t
t/httpd-corner.t
t/httpd-https.t
t/httpd-unix.t
t/httpd.t
t/indexlevels-mirror.t
t/init.t
t/mda_filter_rubylang.t
t/msgmap.t
t/nntp.t
t/nntpd-tls.t
t/nntpd.t
t/over.t
t/plack.t
t/psgi_attach.t
t/psgi_bad_mids.t
t/psgi_mount.t
t/psgi_multipart_not.t
t/psgi_scan_all.t
t/psgi_search.t
t/psgi_text.t
t/psgi_v2.t
t/purge.t
t/replace.t
t/search-thr-index.t
t/search.t
t/solver_git.t
t/v1-add-remove-add.t
t/v1reindex.t
t/v2-add-remove-add.t
t/v2mda.t
t/v2mirror.t
t/v2reindex.t
t/v2writable.t
t/watch_filter_rubylang.t
t/watch_maildir.t
t/watch_maildir_v2.t
t/www_listing.t
t/xcpdb-reshard.t
xt/git-http-backend.t
xt/msgtime_cmp.t
xt/nntpd-validate.t
xt/perf-nntpd.t