Dagnabit C0 Coverage Information - RCov

lib/dagnabit/link/transitive_closure_recalculation/utilities.rb

Name Total Lines Lines of Code Total Coverage Code Coverage
lib/dagnabit/link/transitive_closure_recalculation/utilities.rb 56 46
100.00%
100.00%

Key

Code reported as executed by Ruby looks like this...and this: this line is also marked as covered.Lines considered as run by rcov, but not reported by Ruby, look like this,and this: these lines were inferred by rcov (using simple heuristics).Finally, here's a line marked as not executed.

Coverage Details

1 module Dagnabit
2   module Link
3     module TransitiveClosureRecalculation
4       module Utilities
5         private
6 
7         def quoted_dag_link_values
8           dag_link_column_names.map { |n| connection.quote(send(n)) }
9         end
10 
11         def quoted_dag_link_column_names
12           dag_link_column_names.map { |n| connection.quote_column_name(n) }
13         end
14 
15         def dag_link_column_names
16           [ self.class.ancestor_id_column,
17             self.class.descendant_id_column,
18             self.class.ancestor_type_column,
19             self.class.descendant_type_column ]
20         end
21 
22         def all_quoted_column_values
23           all_column_names.map { |n| connection.quote(send(n)) }
24         end
25 
26         def all_quoted_column_names
27           all_column_names.map { |n| connection.quote_column_name(n) }
28         end
29 
30         def all_column_names
31           all_columns.map { |c| c.name }
32         end
33 
34         def with_temporary_edge_tables(*tables, &block)
35           tables.each do |table|
36             connection.create_table(table, :temporary => true, :id => false) do |t|
37               all_columns.each do |c|
38                 t.send(c.type, c.name)
39               end
40             end
41           end
42 
43           yield(tables.map { |t| connection.quote_table_name(t) })
44 
45           tables.each do |table|
46             connection.drop_table table
47           end
48         end
49 
50         def all_columns
51           self.class.columns.reject { |c| c.name == 'id' || c.name == 'type' }
52         end
53       end
54     end
55   end
56 end

Generated on Tue Dec 08 04:06:14 -0600 2009 with rcov 0.9.6