Clover.NET coverage report - Coverage

Coverage timestamp: Friday, May 20, 2005 9:17:00 PM

File Stats: LOC: 95   Methods: 5
NCLOC: 47 Classes: 1
 
Source File Conditionals Statements Methods TOTAL
Configuration\Statements\Procedure.cs 50.0 % 80.0 % 80.0 % 75.0 %
coverage coverage
1  
2   #region Apache Notice
3   /*****************************************************************************
4   * $Header: $
5   * $Revision: $
6   * $Date: $
7   *
8   * iBATIS.NET Data Mapper
9   * Copyright (C) 2004 - Gilles Bayon
10   *
11   *
12   * Licensed under the Apache License, Version 2.0 (the "License");
13   * you may not use this file except in compliance with the License.
14   * You may obtain a copy of the License at
15   *
16   * http://www.apache.org/licenses/LICENSE-2.0
17   *
18   * Unless required by applicable law or agreed to in writing, software
19   * distributed under the License is distributed on an "AS IS" BASIS,
20   * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
21   * See the License for the specific language governing permissions and
22   * limitations under the License.
23   *
24   ********************************************************************************/
25   #endregion
26  
27   #region Using
28   using System;
29   using System.Data;
30   using System.Xml.Serialization;
31  
32   using IBatisNet.Common.Exceptions;
33   using IBatisNet.DataMapper.Exceptions;
34   using IBatisNet.DataMapper.Scope;
35   #endregion
36  
37   namespace IBatisNet.DataMapper.Configuration.Statements
38   {
39   /// <summary>
40   /// Represent a store Procedure.
41   /// </summary>
42   [Serializable]
43   [XmlRoot("procedure")]
44   public class Procedure : Statement
45   {
46  
47   #region Properties
48   /// <summary>
49   /// The type of the statement StoredProcedure.
50   /// </summary>
51   [XmlIgnoreAttribute]
52   public override CommandType CommandType
53   {
54 19 get { return CommandType.StoredProcedure; }
55   }
56  
57   /// <summary>
58   /// Extend statement attribute
59   /// </summary>
60   [XmlIgnoreAttribute]
61   public override string ExtendSatement
62   {
63 680 get { return string.Empty; }
64 0 set { }
65   }
66   #endregion
67  
68   #region Constructor (s) / Destructor
69   /// <summary>
70   /// Do not use direclty, only for serialization.
71   /// </summary>
72 680 [Obsolete("This public constructor with no parameter is not really obsolete, but is reserved for serialization.", false)]
73   public Procedure():base()
74   {
75   }
76   #endregion
77  
78   #region Methods
79   /// <summary>
80   ///
81   /// </summary>
82   /// <param name="configurationScope">The scope of the configuration</param>
83 680 override internal void Initialize(ConfigurationScope configurationScope)
84   {
85 680 base.Initialize( configurationScope );
86 680 if (this.ParameterMap == null)
87   {
88 0 throw new ConfigurationException("The parameterMap attribute is required in the procedure tag named '"+ this.Id +"'.");
89   }
90   }
91   #endregion
92  
93   }
94   }
95