[Xapian-tickets] [Xapian] #238: Improve test coverage of Database::check() (was: No tests of Database::check())

Xapian nobody at xapian.org
Thu Jan 9 05:34:59 GMT 2014


#238: Improve test coverage of Database::check()
------------------------+------------------------------
 Reporter:  richard     |             Owner:  olly
     Type:  defect      |            Status:  new
 Priority:  normal      |         Milestone:  1.3.x
Component:  Test Suite  |           Version:  SVN trunk
 Severity:  normal      |        Resolution:
 Keywords:              |        Blocked By:
 Blocking:              |  Operating System:  All
------------------------+------------------------------
\
\
\
\
\
\

Old description:

> The Database::check() API (which xapian-check uses) currently has no test
> cases.
>
> ----
> ''Original description:''
>
> The xapian-compact and xapian-check utilities have no test cases.
>
> If bug #175 were fixed (so that the xapian-compact functionality was
> available
> in the C++ API) it would be possible to implement such tests as part of
> apitest.
>
> It might also be generally useful to have a C++ API for xapian-check.
>
> Therefore, I'm marking this bug as being blocked by #175, since if we're
> going
> to fix #175 that would be the easiest way to implement tests.

New description:

 The Database::check() API (which xapian-check uses) is currently called
 from only one test case.

 ----
 ''Original description:''

 The xapian-compact and xapian-check utilities have no test cases.

 If bug #175 were fixed (so that the xapian-compact functionality was
 available
 in the C++ API) it would be possible to implement such tests as part of
 apitest.

 It might also be generally useful to have a C++ API for xapian-check.

 Therefore, I'm marking this bug as being blocked by #175, since if we're
 going
 to fix #175 that would be the easiest way to implement tests.

--
\
\

Comment (by olly):

 r17814 alters cursordelbug1 to call Xapian::Database::check(), so we now
 have at least some test coverage.
\
\
\

--
Ticket URL: <http://trac.xapian.org/ticket/238#comment:9>
Xapian <http://xapian.org/>
Xapian



More information about the Xapian-tickets mailing list