Clover.NET coverage report - Coverage for s2container.net

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

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