Clover.NET coverage report - Coverage for s2container.net

Coverage timestamp: 2006年5月30日 11:21:29

File Stats: LOC: 181   Methods: 28
NCLOC: 135 Classes: 1
 
Source File Conditionals Statements Methods TOTAL
Seasar.Tests.Extension.Unit\NHibernateNullableBasicTypeBean.cs - 47.1% 89.3% 62.0%
coverage coverage
1   #region Copyright
2   /*
3   * Copyright 2005 the Seasar Foundation and the Others.
4   *
5   * Licensed under the Apache License, Version 2.0 (the "License");
6   * you may not use this file except in compliance with the License.
7   * You may obtain a copy of the License at
8   *
9   * http://www.apache.org/licenses/LICENSE-2.0
10   *
11   * Unless required by applicable law or agreed to in writing, software
12   * distributed under the License is distributed on an "AS IS" BASIS,
13   * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND,
14   * either express or implied. See the License for the specific language
15   * governing permissions and limitations under the License.
16   */
17   #endregion
18  
19   using System;
20   using System.Text;
21   using Nullables;
22  
23   namespace Seasar.Tests.Extension.Unit
24   {
25   [Serializable]
26   public class NHibernateNullableBasicTypeBean
27   {
28   private NullableInt64 id;
29  
30   public NullableInt64 Id
31   {
32 2 get { return id; }
33 2 set { id = value; }
34   }
35  
36   private NullableBoolean boolType;
37  
38   public NullableBoolean BoolType
39   {
40 2 get { return boolType; }
41 2 set { boolType = value; }
42   }
43  
44   private NullableSByte sbyteType;
45  
46   public NullableSByte SbyteType
47   {
48 2 get { return sbyteType; }
49 2 set { sbyteType = value; }
50   }
51  
52   private NullableByte byteType;
53  
54   public NullableByte ByteType
55   {
56 2 get { return byteType; }
57 2 set { byteType = value; }
58   }
59  
60   private NullableInt16 int16Type;
61  
62   public NullableInt16 Int16Type
63   {
64 2 get { return int16Type; }
65 2 set { int16Type = value; }
66   }
67  
68   private NullableInt32 int32Type;
69  
70   public NullableInt32 Int32Type
71   {
72 2 get { return int32Type; }
73 2 set { int32Type = value; }
74   }
75  
76   private NullableInt64 int64Type;
77  
78   public NullableInt64 Int64Type
79   {
80 2 get { return int64Type; }
81 2 set { int64Type = value; }
82   }
83  
84   private NullableDecimal decimalType;
85  
86   public NullableDecimal DecimalType
87   {
88 2 get { return decimalType; }
89 2 set { decimalType = value; }
90   }
91  
92   private NullableSingle singleType;
93  
94   public NullableSingle SingleType
95   {
96 2 get { return singleType; }
97 2 set { singleType = value; }
98   }
99  
100   private NullableDouble doubleType;
101  
102   public NullableDouble DoubleType
103   {
104 2 get { return doubleType; }
105 2 set { doubleType = value; }
106   }
107  
108   private string stringType;
109  
110   public string StringType
111   {
112 2 get { return stringType; }
113 2 set { stringType = value; }
114   }
115  
116   private NullableDateTime dateTimeType;
117  
118   public NullableDateTime DateTimeType
119   {
120 2 get { return dateTimeType; }
121 2 set { dateTimeType = value; }
122   }
123  
124 2 public NHibernateNullableBasicTypeBean()
125   {
126   }
127  
128 0 public NHibernateNullableBasicTypeBean(
129   NullableInt64 id,
130   NullableBoolean boolType,
131   NullableSByte sbyteType,
132   NullableByte byteType,
133   NullableInt16 int16Type,
134   NullableInt32 int32Type,
135   NullableInt64 int64Type,
136   decimal decimalType,
137   float singleType,
138   double doubleType,
139   string stringType,
140   DateTime dateTimeType
141   )
142   {
143   this.id = id;
144   this.boolType = boolType;
145   this.sbyteType = sbyteType;
146   this.byteType = byteType;
147   this.int16Type = int16Type;
148   this.int32Type = int32Type;
149   this.int64Type = int64Type;
150   this.decimalType = decimalType;
151   this.singleType = singleType;
152   this.doubleType = doubleType;
153   this.stringType = stringType;
154   this.dateTimeType = dateTimeType;
155   }
156  
157 0 public override int GetHashCode()
158   {
159   return (int) this.Id;
160   }
161  
162 0 public override string ToString()
163   {
164   StringBuilder buf = new StringBuilder();
165   buf.Append(id).Append(", ");
166   buf.Append(boolType).Append(", ");
167   buf.Append(sbyteType).Append(", ");
168   buf.Append(byteType).Append(", ");
169   buf.Append(int16Type).Append(", ");
170   buf.Append(int32Type).Append(", ");
171   buf.Append(int64Type).Append(", ");
172   buf.Append(decimalType).Append(", ");
173   buf.Append(singleType).Append(", ");
174   buf.Append(doubleType).Append(", ");
175   buf.Append(stringType).Append(", ");
176   buf.Append(dateTimeType);
177   return buf.ToString();
178   }
179   }
180   }
181