1
#***************************************************************************
2
# QtTest4.pm - QtTest perl client lib
5
# copyright : (C) 2009 by Chris Burel
6
# email : chrisburel@gmail.com
7
# ***************************************************************************
9
#***************************************************************************
11
# * This program is free software; you can redistribute it and/or modify *
12
# * it under the terms of the GNU General Public License as published by *
13
# * the Free Software Foundation; either version 2 of the License, or *
14
# * (at your option) any later version. *
16
# ***************************************************************************
18
package QtTest4::_internal;
23
use base qw(Qt::_internal);
26
@Qt::_internal::vectorTypes{qw(Qt::SignalSpy Qt::TestEventList)} = undef;
27
foreach my $c ( @{getClassList()} ) {
28
QtTest4::_internal->init_class($c);
30
foreach my $e ( @{getEnumList()} ) {
31
QtTest4::_internal->init_enum($e);
43
our $VERSION = '0.01';
45
XSLoader::load('QtTest4', $VERSION);
47
QtTest4::_internal::init();
50
use base qw(Exporter);
51
our @EXPORT_OK = qw( QCOMPARE QVERIFY QTEST_MAIN );
59
$classPm =~ s/::/\//g;
63
my $app = Qt::Application(\@ARGV);
68
return Qt::Test::qExec($test, scalar @ARGV, \@ARGV);
72
my ($statement, $description) = @_;
73
return Qt::Test::qVerify(
82
package Qt::SignalSpy;
87
package Qt::SignalSpy::_overload;
90
'==' => \&op_equality;
92
package Qt::TestEventList;
97
package Qt::TestEventList::_overload;
100
'==' => \&op_equality;