1 # $Id: Title.pm,v 1.10 2007-02-23 15:03:44 mike Exp $
3 # See the "Main" test package for documentation
5 package ZOOM::IRSpy::Test::Search::Title;
11 use ZOOM::IRSpy::Test;
12 our @ISA = qw(ZOOM::IRSpy::Test);
14 use ZOOM::IRSpy::Utils qw(isodate);
21 $conn->irspy_search_pqf('@attr 1=4 mineral', undef, {},
22 ZOOM::Event::ZEND, \&found,
23 "exception", \&error);
28 my($conn, $task, $__UNUSED_udata, $event) = @_;
30 my $n = $task->{rs}->size();
31 $conn->log("irspy_test",
32 "title search found $n record", $n==1 ? "" : "s");
33 my $rec = $conn->record();
34 $rec->append_entry("irspy:status", "<irspy:search_title ok='1'>" .
35 isodate(time()) . "</irspy:search_title>");
37 return ZOOM::IRSpy::Status::TASK_DONE;
42 my($conn, $task, $__UNUSED_udata, $exception) = @_;
44 $conn->log("irspy_test", "title search had error: $exception");
45 my $rec = $conn->record();
46 $rec->append_entry("irspy:status", "<irspy:search_title ok='0'>" .
47 isodate(time()) . "</irspy:search_title>");
48 return ZOOM::IRSpy::Status::TEST_BAD;