mirror of https://github.com/djcb/mu.git
test-query: improve logging
This commit is contained in:
parent
33dbcbb25f
commit
7774261526
|
@ -1,5 +1,5 @@
|
||||||
/*
|
/*
|
||||||
** Copyright (C) 2020 Dirk-Jan C. Binnema <djcb@djcbsoftware.nl>
|
** Copyright (C) 2022 Dirk-Jan C. Binnema <djcb@djcbsoftware.nl>
|
||||||
**
|
**
|
||||||
** This program is free software; you can redistribute it and/or modify it
|
** This program is free software; you can redistribute it and/or modify it
|
||||||
** under the terms of the GNU General Public License as published by the
|
** under the terms of the GNU General Public License as published by the
|
||||||
|
@ -54,10 +54,11 @@ test_query()
|
||||||
auto dump_matches = [](const QueryResults& res) {
|
auto dump_matches = [](const QueryResults& res) {
|
||||||
size_t n{};
|
size_t n{};
|
||||||
for (auto&& item : res)
|
for (auto&& item : res)
|
||||||
g_debug("%02zu %s %s",
|
if (g_test_verbose())
|
||||||
++n,
|
g_debug("%02zu %s %s",
|
||||||
item.path().value_or("<none>").c_str(),
|
++n,
|
||||||
item.message_id().value_or("<none>").c_str());
|
item.path().value_or("<none>").c_str(),
|
||||||
|
item.message_id().value_or("<none>").c_str());
|
||||||
};
|
};
|
||||||
|
|
||||||
g_assert_cmpuint(store.size(), ==, 19);
|
g_assert_cmpuint(store.size(), ==, 19);
|
||||||
|
|
Loading…
Reference in New Issue