1 # $Id: Title.pm,v 1.8 2006-10-25 10:49:51 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);
19 $conn->irspy_search_pqf('@attr 1=4 mineral', undef, {},
20 ZOOM::Event::RECV_SEARCH, \&found,
21 "exception", \&error);
26 my($conn, $task, $__UNUSED_udata, $event) = @_;
28 my $n = $task->{rs}->size();
29 $conn->log("irspy_test",
30 "title search found $n record", $n==1 ? "" : "s");
31 my $rec = $conn->record();
32 $rec->append_entry("irspy:status", "<irspy:search_title ok='1'>" .
33 isodate(time()) . "</irspy:search_title>");
35 return ZOOM::IRSpy::Status::TASK_DONE;
40 my($conn, $task, $__UNUSED_udata, $exception) = @_;
42 $conn->log("irspy_test", "title search had error: $exception");
43 my $rec = $conn->record();
44 $rec->append_entry("irspy:status", "<irspy:search_title ok='0'>" .
45 isodate(time()) . "</irspy:search_title>");
46 return ZOOM::IRSpy::Status::TEST_BAD;