aboutsummaryrefslogtreecommitdiffstats
path: root/t
diff options
context:
space:
mode:
authorgroditi <groditi@03d0b0b2-0e1a-0410-a411-fdb2f4bd65d7>2007-10-05 19:28:51 +0000
committergroditi <groditi@03d0b0b2-0e1a-0410-a411-fdb2f4bd65d7>2007-10-05 19:28:51 +0000
commita5200252cbe43d0d240e75e95d9dfd1623975172 (patch)
tree2e6bae8f6c6cdee2f762c716bd33c98b632fba5b /t
parentde48f4e69aef2efba652b10994a920d6a61e856d (diff)
downloadreaction-a5200252cbe43d0d240e75e95d9dfd1623975172.tar.gz
reaction-a5200252cbe43d0d240e75e95d9dfd1623975172.zip
simplify value widgets to reduce PROCESS calls, make some classes immutable which were not before. nice increase in performance.
Diffstat (limited to 't')
-rw-r--r--t/lib/RTest/TestDB/Bar.pm3
-rw-r--r--t/lib/RTest/TestDB/Baz.pm2
-rw-r--r--t/lib/RTest/TestDB/Foo.pm3
3 files changed, 8 insertions, 0 deletions
diff --git a/t/lib/RTest/TestDB/Bar.pm b/t/lib/RTest/TestDB/Bar.pm
index 4e22d06..1af3f05 100644
--- a/t/lib/RTest/TestDB/Bar.pm
+++ b/t/lib/RTest/TestDB/Bar.pm
@@ -31,4 +31,7 @@ __PACKAGE__->belongs_to(
{ 'foreign.id' => 'self.foo_id' }
);
+__PACKAGE__->meta->make_immutable;
+
+
1;
diff --git a/t/lib/RTest/TestDB/Baz.pm b/t/lib/RTest/TestDB/Baz.pm
index 848cb4f..47cc019 100644
--- a/t/lib/RTest/TestDB/Baz.pm
+++ b/t/lib/RTest/TestDB/Baz.pm
@@ -26,4 +26,6 @@ __PACKAGE__->set_primary_key('id');
__PACKAGE__->has_many('links_to_foo_list' => 'RTest::TestDB::FooBaz', 'baz');
__PACKAGE__->many_to_many('foo_list' => 'links_to_foo_list' => 'foo');
+__PACKAGE__->meta->make_immutable;
+
1;
diff --git a/t/lib/RTest/TestDB/Foo.pm b/t/lib/RTest/TestDB/Foo.pm
index 5733054..7e3cd2f 100644
--- a/t/lib/RTest/TestDB/Foo.pm
+++ b/t/lib/RTest/TestDB/Foo.pm
@@ -39,4 +39,7 @@ __PACKAGE__->many_to_many('baz_list' => 'links_to_baz_list' => 'baz');
*get_baz_list = sub { [ shift->baz_list->all ] };
}
+
+__PACKAGE__->meta->make_immutable;
+
1;