Clover.NET coverage report - Coverage for s2dao.net

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

File Stats: LOC: 76   Methods: 6
NCLOC: 48 Classes: 1
 
Source File Conditionals Statements Methods TOTAL
Seasar.Dao.Node\AbstractNode.cs 0.0% 66.7% 83.3% 65.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.Collections;
21   using Seasar.Framework.Util;
22  
23   namespace Seasar.Dao.Node
24   {
25   public abstract class AbstractNode : INode
26   {
27   private IList children = new ArrayList();
28  
29 480 public AbstractNode()
30   {
31   }
32  
33   #region INode メンバ
34  
35   public int ChildSize
36   {
37 306 get
38   {
39 306 return children.Count;
40   }
41   }
42  
43 184 public INode GetChild(int index)
44   {
45 184 return (INode) children[index];
46   }
47  
48 365 public void AddChild(INode node)
49   {
50 365 children.Add(node);
51   }
52  
53 0 public bool ContainsChild(Type childType)
54   {
55   foreach(INode child in children)
56   {
57   if(child.GetType().Equals(childType)) return true;
58   }
59   return false;
60   }
61  
62   public abstract void Accept(ICommandContext ctx);
63  
64   #endregion
65  
66 36 protected object InvokeExpression(string expression, ICommandContext ctx)
67   {
68 36 Hashtable ht = new Hashtable();
69 36 ht["self"] = ctx;
70 36 ht["out"] = Console.Out;
71 36 ht["err"] = Console.Error;
72 36 return JScriptUtil.Evaluate(expression, ht, null);
73   }
74   }
75   }
76