Clover.NET coverage report - Coverage for s2dao.net

Coverage timestamp: 2006年5月30日 11:48:56

File Stats: LOC: 83   Methods: 14
NCLOC: 62 Classes: 1
 
Source File Conditionals Statements Methods TOTAL
Seasar.Dao.Tests.Impl\Department.cs 0.0% 66.7% 71.4% 64.9%
coverage coverage
1   using System;
2   using System.Text;
3   using Seasar.Dao.Attrs;
4  
5   namespace Seasar.Dao.Tests.Impl
6   {
7   /// <summary>
8   /// Department の概要の説明です。
9   /// </summary>
10   [Table("DEPT")]
11   public class Department
12   {
13  
14   private int deptno;
15  
16   private String dname;
17  
18   private String loc;
19  
20   private int versionNo;
21  
22   private String dummy;
23  
24 19 public Department()
25   {
26   }
27  
28   public int Deptno
29   {
30 18 set { deptno = value; }
31 10 get { return deptno; }
32   }
33  
34   public String Dname
35   {
36 8 set { dname = value; }
37 9 get { return dname; }
38   }
39   public String Loc
40   {
41 4 set { loc = value; }
42 2 get { return loc; }
43   }
44  
45   public int VersionNo
46   {
47 8 set { versionNo = value; }
48 7 get { return versionNo; }
49   }
50  
51 0 public Boolean equals(Object other)
52   {
53   //if ( !(other instanceof Department) ) return false;
54   if ( !(other.GetType() == typeof(Department)) ) return false;
55   Department castOther = (Department) other;
56   return this.Deptno == castOther.Deptno;
57   }
58  
59 0 public int hashCode()
60   {
61   return this.Deptno;
62   }
63  
64 2 public override string ToString()
65   {
66 2 StringBuilder buf = new StringBuilder();
67 2 buf.Append(deptno).Append(", ");
68 2 buf.Append(dname).Append(", ");
69 2 buf.Append(loc).Append(", ");
70 2 buf.Append(versionNo);
71 2 return buf.ToString();
72   }
73  
74 0 public String Dummy
75   {
76   set { dummy = value; }
77   get { return dummy; }
78   }
79  
80  
81   }
82   }
83