Clover.NET coverage report - Coverage for s2container.net

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

File Stats: LOC: 180   Methods: 28
NCLOC: 135 Classes: 1
 
Source File Conditionals Statements Methods TOTAL
Seasar.Tests.Extension.Unit\NullableBasicTypeBean.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  
22   namespace Seasar.Tests.Extension.Unit
23   {
24   [Serializable]
25   public class NullableBasicTypeBean
26   {
27   private long? id;
28  
29   public long? Id
30   {
31 2 get { return id; }
32 2 set { id = value; }
33   }
34  
35   private bool? boolType;
36  
37   public bool? BoolType
38   {
39 2 get { return boolType; }
40 2 set { boolType = value; }
41   }
42  
43   private sbyte? sbyteType;
44  
45   public sbyte? SbyteType
46   {
47 2 get { return sbyteType; }
48 2 set { sbyteType = value; }
49   }
50  
51   private byte? byteType;
52  
53   public byte? ByteType
54   {
55 2 get { return byteType; }
56 2 set { byteType = value; }
57   }
58  
59   private short? int16Type;
60  
61   public short? Int16Type
62   {
63 2 get { return int16Type; }
64 2 set { int16Type = value; }
65   }
66  
67   private int? int32Type;
68  
69   public int? Int32Type
70   {
71 2 get { return int32Type; }
72 2 set { int32Type = value; }
73   }
74  
75   private long? int64Type;
76  
77   public long? Int64Type
78   {
79 2 get { return int64Type; }
80 2 set { int64Type = value; }
81   }
82  
83   private decimal? decimalType;
84  
85   public decimal? DecimalType
86   {
87 2 get { return decimalType; }
88 2 set { decimalType = value; }
89   }
90  
91   private float? singleType;
92  
93   public float? SingleType
94   {
95 2 get { return singleType; }
96 2 set { singleType = value; }
97   }
98  
99   private double? doubleType;
100  
101   public double? DoubleType
102   {
103 2 get { return doubleType; }
104 2 set { doubleType = value; }
105   }
106  
107   private string stringType;
108  
109   public string StringType
110   {
111 2 get { return stringType; }
112 2 set { stringType = value; }
113   }
114  
115   private DateTime? dateTimeType;
116  
117   public DateTime? DateTimeType
118   {
119 2 get { return dateTimeType; }
120 2 set { dateTimeType = value; }
121   }
122  
123 2 public NullableBasicTypeBean()
124   {
125   }
126  
127 0 public NullableBasicTypeBean(
128   long? id,
129   bool? boolType,
130   sbyte? sbyteType,
131   byte? byteType,
132   short? int16Type,
133   int? int32Type,
134   long? int64Type,
135   decimal? decimalType,
136   float? singleType,
137   double? doubleType,
138   string stringType,
139   DateTime? dateTimeType
140   )
141   {
142   this.id = id;
143   this.boolType = boolType;
144   this.sbyteType = sbyteType;
145   this.byteType = byteType;
146   this.int16Type = int16Type;
147   this.int32Type = int32Type;
148   this.int64Type = int64Type;
149   this.decimalType = decimalType;
150   this.singleType = singleType;
151   this.doubleType = doubleType;
152   this.stringType = stringType;
153   this.dateTimeType = dateTimeType;
154   }
155  
156 0 public override int GetHashCode()
157   {
158   return (int) this.Id;
159   }
160  
161 0 public override string ToString()
162   {
163   StringBuilder buf = new StringBuilder();
164   buf.Append(id).Append(", ");
165   buf.Append(boolType).Append(", ");
166   buf.Append(sbyteType).Append(", ");
167   buf.Append(byteType).Append(", ");
168   buf.Append(int16Type).Append(", ");
169   buf.Append(int32Type).Append(", ");
170   buf.Append(int64Type).Append(", ");
171   buf.Append(decimalType).Append(", ");
172   buf.Append(singleType).Append(", ");
173   buf.Append(doubleType).Append(", ");
174   buf.Append(stringType).Append(", ");
175   buf.Append(dateTimeType);
176   return buf.ToString();
177   }
178   }
179   }
180