Sha256: b70134423d16f9fa63a523e9f85818b20c335844d94378182edbc35499fac9e8
Contents?: true
Size: 1.23 KB
Versions: 5
Compression:
Stored size: 1.23 KB
Contents
<h3>Lines of Code/Tests Metric Results</h3> <% graph_name = 'stats' %> <% if MetricFu.configuration.graph_engine == :gchart %> <img src="<%= graph_name %>.png?<%= Time.now.to_i %>" /> <% else %> <canvas id="graph"></canvas> <script language="javascript" src="<%= graph_name %>.js?<%= Time.now.to_i %>" type="text/javascript"></script> <% end %> <p>Lines of Code/Tests Metrics Results</p> <table> <tr> <th>Lines of Code</th> <th>Lines of Test</th> <th>Code to test ratio</th> </tr> <tr> <td><%= @stats[:codeLOC] %></td> <td><%= @stats[:testLOC] %></td> <td>1:<%= @stats[:code_to_test_ratio] %></td> </tr> </table> <table> <tr> <th>Name</th> <th>Lines</th> <th>LOC</th> <th>Classes</th> <th>Methods</th> <th>Methods per class</th> <th>LOC per method</th> </tr> <% count = 0 %> <% @stats[:lines].each do |line| %> <tr> <td><%= line[:name] %></td> <td><%= line[:lines] %></td> <td><%= line[:loc] %></td> <td><%= line[:classes] %></td> <td><%= line[:methods] %></td> <td><%= line[:methods_per_class] %></td> <td><%= line[:loc_per_method] %></td> </tr> <% count += 1 %> <% end %> </table> <p>Generated on <%= Time.now.localtime %></p>
Version data entries
5 entries across 5 versions & 1 rubygems