annotate Lib/IMPL/Test/Result.pm @ 0:03e58a454b20

Создан репозитарий
author Sergey
date Tue, 14 Jul 2009 12:54:37 +0400
parents
children 16ada169ca75
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
0
03e58a454b20 Создан репозитарий
Sergey
parents:
diff changeset
1 package IMPL::Test::Result;
03e58a454b20 Создан репозитарий
Sergey
parents:
diff changeset
2 use strict;
03e58a454b20 Создан репозитарий
Sergey
parents:
diff changeset
3 use warnings;
03e58a454b20 Создан репозитарий
Sergey
parents:
diff changeset
4
03e58a454b20 Создан репозитарий
Sergey
parents:
diff changeset
5 use base qw(IMPL::Object IMPL::Object::Autofill IMPL::Object::Serializable);
03e58a454b20 Создан репозитарий
Sergey
parents:
diff changeset
6 use IMPL::Class::Property;
03e58a454b20 Создан репозитарий
Sergey
parents:
diff changeset
7
03e58a454b20 Создан репозитарий
Sergey
parents:
diff changeset
8 __PACKAGE__->PassThroughArgs;
03e58a454b20 Создан репозитарий
Sergey
parents:
diff changeset
9
03e58a454b20 Создан репозитарий
Sergey
parents:
diff changeset
10 use constant {
03e58a454b20 Создан репозитарий
Sergey
parents:
diff changeset
11 SUCCESS => 0,
03e58a454b20 Создан репозитарий
Sergey
parents:
diff changeset
12 FAIL => 1,
03e58a454b20 Создан репозитарий
Sergey
parents:
diff changeset
13 ERROR => 2
03e58a454b20 Создан репозитарий
Sergey
parents:
diff changeset
14 };
03e58a454b20 Создан репозитарий
Sergey
parents:
diff changeset
15
03e58a454b20 Создан репозитарий
Sergey
parents:
diff changeset
16 BEGIN {
03e58a454b20 Создан репозитарий
Sergey
parents:
diff changeset
17 public property Name => prop_all;
03e58a454b20 Создан репозитарий
Sergey
parents:
diff changeset
18 public property State => prop_all;
03e58a454b20 Создан репозитарий
Sergey
parents:
diff changeset
19 public property Exception => prop_all;
03e58a454b20 Создан репозитарий
Sergey
parents:
diff changeset
20 public property TimeExclusive => prop_all;
03e58a454b20 Создан репозитарий
Sergey
parents:
diff changeset
21 public property TimeInclusive => prop_all;
03e58a454b20 Создан репозитарий
Sergey
parents:
diff changeset
22 }
03e58a454b20 Создан репозитарий
Sergey
parents:
diff changeset
23
03e58a454b20 Создан репозитарий
Sergey
parents:
diff changeset
24 sub CTOR {
03e58a454b20 Создан репозитарий
Sergey
parents:
diff changeset
25 my ($this) = @_;
03e58a454b20 Создан репозитарий
Sergey
parents:
diff changeset
26
03e58a454b20 Создан репозитарий
Sergey
parents:
diff changeset
27 $this->TimeInclusive(0) unless defined $this->TimeInclusive;
03e58a454b20 Создан репозитарий
Sergey
parents:
diff changeset
28 $this->TimeExclusive(0) unless defined $this->TimeExclusive;
03e58a454b20 Создан репозитарий
Sergey
parents:
diff changeset
29 }
03e58a454b20 Создан репозитарий
Sergey
parents:
diff changeset
30
03e58a454b20 Создан репозитарий
Sergey
parents:
diff changeset
31
03e58a454b20 Создан репозитарий
Sergey
parents:
diff changeset
32 1;