David Bremner
e5e17926db
test: add regression test for n_messages_collect_tags
...
Also test n_messages_destroy.
2020-08-03 20:47:18 -03:00
David Bremner
00f48f397a
test: destroy thread from closed database
...
Check for (non)-crash.
2020-07-31 07:41:00 -03:00
David Bremner
864f422f14
test: regression test for n_thread_get_tags
...
Code is taken from the API docs, with the twist that the underlying
database is closed. Not crashing is the main point.
2020-07-31 07:41:00 -03:00
David Bremner
43406e7d4c
test: add regression tests for oldest and newest dates
...
These are strictly to watch for crashes, so don't be too fussy about
the actual timestamps.
2020-07-31 07:41:00 -03:00
David Bremner
c5017c76d9
test: add regression tests for n_t_get_{authors, subject}
...
This is returning explicitely cached data, so no database access is needed.
2020-07-31 07:41:00 -03:00
David Bremner
70b30066f6
test: add regression test for n_t_get_messages
...
This is similar to the case of toplevel messages. Currently everything
is cached, so no database access is necessary. This might change in
the future, but it should not crash in either case.
2020-07-31 07:41:00 -03:00
David Bremner
6ccc4338a4
test: add regression tests for n_thread_get_toplevel_messages
...
Include a test for the previously omitted non-trivial code path for
notmuch_thread_get_replies.
2020-07-31 07:41:00 -03:00
David Bremner
02ab473115
test: add regression test for n_thread_get_total_{messages,files}
...
This is returning cached info, so does not need to access the (closed)
database.
2020-07-31 07:41:00 -03:00
David Bremner
0baa581e6e
test: regression test for n_t_get_thread_id
...
This is just cached data, so as long as we don't prematurely free
anything, it should be fine.
2020-07-31 07:41:00 -03:00