Clover.NET coverage report - Coverage for s2dao.net

Coverage timestamp: 2006年5月18日 15:09:15

File Stats: LOC: 144   Methods: 20
NCLOC: 82 Classes: 1
 
Source File Conditionals Statements Methods TOTAL
Seasar.Dao.Tests.Impl\Employee.cs - 53.8% 75.0% 63.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 System.Data.SqlTypes;
22   using Seasar.Dao.Attrs;
23  
24   namespace Seasar.Dao.Tests.Impl
25   {
26   [Table("EMP")]
27   public class Employee
28   {
29   private long empno;
30   private string ename;
31  
32   private string job;
33  
34   private SqlInt16 mgr;
35  
36   private float sal;
37  
38   // private float comm;
39  
40   private int deptno;
41  
42   private byte[] password;
43  
44   private string dummy;
45  
46   private Department department;
47  
48   //private Timestamp timestamp;
49  
50 50 public Employee()
51   {
52   }
53  
54   public long Empno
55   {
56 48 set { empno = value; }
57 22 get { return empno; }
58   }
59  
60   public string Ename
61   {
62 50 set { ename = value; }
63 19 get { return ename; }
64   }
65  
66   public string Job
67   {
68 45 set { job = value; }
69 4 get { return job; }
70   }
71  
72   public SqlInt16 Mgr
73   {
74 44 set { mgr = value; }
75 4 get { return mgr; }
76   }
77  
78   //範囲外例外
79   // public DateTime Hiredate
80   // {
81   // set { hiredate = value; }
82   // get { return hiredate; }
83   // }
84  
85   public float Sal
86   {
87 44 set { sal = value; }
88 4 get { return sal; }
89   }
90  
91   //Null例外
92   // public float Comm
93   // {
94   // set { comm = value; }
95   // get { return comm; }
96   // }
97  
98   public int Deptno
99   {
100 45 set { deptno = value; }
101 11 get { return deptno; }
102   }
103  
104 0 public byte[] Password
105   {
106   set { password = value; }
107   get { return password; }
108   }
109  
110 0 public string Dummy
111   {
112   set { dummy = value; }
113   get { return dummy; }
114   }
115  
116   [Relno(0)]
117   public Department Department
118   {
119 45 set { department = value; }
120 10 get { return department; }
121   }
122  
123   //範囲外例外
124   // public DateTime Timestamp
125   // {
126   // set { timestamp = value; }
127   // get { return timestamp; }
128   // }
129  
130 0 public override string ToString()
131   {
132   StringBuilder buf = new StringBuilder(50);
133   buf.Append("Empno=");
134   buf.Append(Empno);
135   buf.Append(", Ename=");
136   buf.Append(Ename);
137   buf.Append(", Deptno=");
138   buf.Append(Deptno);
139   return buf.ToString();
140   }
141  
142   }
143   }
144