2 # See the "Main" test package for documentation
4 package ZOOM::IRSpy::Test::Search::Title;
10 use ZOOM::IRSpy::Test;
11 our @ISA = qw(ZOOM::IRSpy::Test);
13 use ZOOM::IRSpy::Utils qw(isodate);
20 $conn->irspy_search_pqf('@attr 1=4 mineral', undef, {},
21 ZOOM::Event::ZEND, \&found,
22 "exception", \&error);
27 my($conn, $task, $__UNUSED_udata, $event) = @_;
29 my $n = $task->{rs}->size();
30 $conn->log("irspy_test",
31 "title search found $n record", $n==1 ? "" : "s");
32 my $rec = $conn->record();
33 $rec->append_entry("irspy:status", "<irspy:search_title ok='1'>" .
34 isodate(time()) . "</irspy:search_title>");
36 return ZOOM::IRSpy::Status::TASK_DONE;
41 my($conn, $task, $__UNUSED_udata, $exception) = @_;
43 $conn->log("irspy_test", "title search had error: $exception");
44 my $rec = $conn->record();
45 $rec->append_entry("irspy:status", "<irspy:search_title ok='0'>" .
46 isodate(time()) . "</irspy:search_title>");
47 return ZOOM::IRSpy::Status::TEST_BAD;