Clover.NET coverage report - Coverage

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

File Stats: LOC: 53   Methods: 1
NCLOC: 15 Classes: 1
 
Source File Conditionals Statements Methods TOTAL
Configuration\Sql\Dynamic\Handlers\IsLessEqualTagHandler.cs - 100.0 % 100.0 % 100.0 %
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   using System;
28  
29   using IBatisNet.DataMapper.Configuration.Sql.Dynamic.Elements;
30  
31  
32   namespace IBatisNet.DataMapper.Configuration.Sql.Dynamic.Handlers
33   {
34   /// <summary>
35   /// Summary description for IsLessEqualTagHandler.
36   /// </summary>
37   public class IsLessEqualTagHandler : ConditionalTagHandler
38   {
39   /// <summary>
40   ///
41   /// </summary>
42   /// <param name="ctx"></param>
43   /// <param name="tag"></param>
44   /// <param name="parameterObject"></param>
45   /// <returns></returns>
46 2 public override bool IsCondition(SqlTagContext ctx, SqlTag tag, object parameterObject)
47   {
48 2 long x = this.Compare(ctx, tag, parameterObject);
49 2 return ((x <= 0) && (x != ConditionalTagHandler.NOT_COMPARABLE));
50   }
51   }
52   }
53