Clover.NET coverage report - Coverage for s2container.net

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

File Stats: LOC: 72   Methods: 7
NCLOC: 45 Classes: 1
 
Source File Conditionals Statements Methods TOTAL
Seasar.Framework.Container\Util\AutoBindingUtil.cs 100.0% 100.0% 85.7% 94.4%
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.Reflection;
21   using Seasar.Framework.Container;
22  
23   namespace Seasar.Framework.Container.Util
24   {
25   /// <summary>
26   /// AutoBindingUtil の概要の説明です。
27   /// </summary>
28   public sealed class AutoBindingUtil
29   {
30 0 private AutoBindingUtil()
31   {
32   }
33  
34 27 public static bool IsSuitable(ParameterInfo[] parameters)
35   {
36 27 foreach(ParameterInfo parameter in parameters)
37   {
38 19 if(!IsSuitable(parameter.ParameterType))
39   {
40 3 return false;
41   }
42   }
43 24 return true;
44   }
45  
46 819 public static bool IsSuitable(Type type)
47   {
48 819 return type.IsInterface;
49   }
50  
51 1127 public static bool IsAuto(string mode)
52   {
53 1127 return ContainerConstants.AUTO_BINDING_AUTO.ToLower().Equals(mode.ToLower());
54   }
55  
56 14 public static bool IsConstructor(string mode)
57   {
58 14 return ContainerConstants.AUTO_BINDING_CONSTRUCTOR.ToLower().Equals(mode.ToLower());
59   }
60  
61 12 public static bool IsProperty(string mode)
62   {
63 12 return ContainerConstants.AUTO_BINDING_PROPERTY.ToLower().Equals(mode.ToLower());
64   }
65  
66 10 public static bool IsNone(string mode)
67   {
68 10 return ContainerConstants.AUTO_BINDING_NONE.ToLower().Equals(mode.ToLower());
69   }
70   }
71   }
72