Clover.NET coverage report - Coverage for s2container.net

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

File Stats: LOC: 96   Methods: 10
NCLOC: 67 Classes: 1
 
Source File Conditionals Statements Methods TOTAL
Seasar.Framework.Util\DataSetInspector.cs - 35.3% 20.0% 29.6%
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.Data;
21   using System.Diagnostics;
22   using System.Reflection;
23   using System.Text;
24   using Seasar.Framework.Log;
25  
26   namespace Seasar.Framework.Util
27   {
28   public class DataSetInspector
29   {
30   private static readonly Logger Log = Logger.GetLogger(MethodBase.GetCurrentMethod().DeclaringType);
31  
32 0 private DataSetInspector()
33   {
34   }
35  
36 4 public static string ToString(DataSet dataSet)
37   {
38 4 StringBuilder result = new StringBuilder();
39  
40 4 foreach (DataTable table in dataSet.Tables)
41 12 { result.Append(DataTableInspector.ToString(table));
42 12 result.Append("\r\n");
43   }
44 4 return result.ToString();
45   }
46  
47 0 public static void DebugLog(DataSet dataSet, string header)
48   {
49   string output = string.Format("{0}\r\n{1}", header,
50   DataSetInspector.ToString(dataSet));
51   Log.Debug(output);
52   }
53  
54 0 public static void DebugLog(DataSet dataSet)
55   {
56   Log.Debug(DataSetInspector.ToString(dataSet));
57   }
58  
59 0 public static void OutWriteLine(DataSet dataSet, string header)
60   {
61   string output = string.Format("{0}\r\n{1}", header,
62   DataSetInspector.ToString(dataSet));
63   Console.Out.WriteLine(output);
64   }
65  
66 4 public static void OutWriteLine(DataSet dataSet)
67   {
68 4 Console.Out.WriteLine(DataSetInspector.ToString(dataSet));
69   }
70  
71 0 public static void DebugWriteLine(DataSet dataSet, string header)
72   {
73   string output = string.Format("{0}\r\n{1}", header,
74   DataSetInspector.ToString(dataSet));
75   Debug.WriteLine(output);
76   }
77  
78 0 public static void DebugWriteLine(DataSet dataSet)
79   {
80   Debug.WriteLine(DataSetInspector.ToString(dataSet));
81   }
82  
83 0 public static void TraceWriteLine(DataSet dataSet, string header)
84   {
85   string output = string.Format("{0}\r\n{1}", header,
86   DataSetInspector.ToString(dataSet));
87   Trace.WriteLine(output);
88   }
89  
90 0 public static void TraceWriteLine(DataSet dataSet)
91   {
92   Trace.WriteLine(DataSetInspector.ToString(dataSet));
93   }
94   }
95   }
96