==================================================================================== = PrivatePlease report : = ==================================================================================== % data.candidates_classes_names .sort.each do |class_name| % % show_good_candidates_section = true % show_bad_candidates_section = options.show_bad_candidates_section? % show_never_candidates_section = options.show_never_called_candidates_section? % % if show_good_candidates_section % good_candidates_table = table_for( % names_from(class_name, data.good_candidates , prefix = "#"), % names_from(class_name, data.good_candidates_c, prefix = ".")) % end % if show_bad_candidates_section % bad_candidates_table = table_for( % names_from(class_name, data.bad_candidates , prefix = "#"), % names_from(class_name, data.bad_candidates_c, prefix = ".")) % end % if show_never_candidates_section % never_called_candidates_table = table_for( % names_from(class_name, data.never_called_candidates , prefix = "#"), % names_from(class_name, data.never_called_candidates_c, prefix = ".")) % end % % # Always hide empty tables : % ########################### % show_good_candidates_section &&= !good_candidates_table.empty? % show_bad_candidates_section &&= !bad_candidates_table.empty? % show_never_candidates_section &&= !never_called_candidates_table.empty? % % nothing_to_show = !(show_good_candidates_section || show_bad_candidates_section || show_never_candidates_section) % next if nothing_to_show && !options.show_empty_classes? % <%= class_name %> % % if show_good_candidates_section % t = good_candidates_table * Good candidates : can be made private : ------------------------------------------ % cell_width = 3 + [38, t.longest_value_length].max % t.rows.each do |inst_m, class_m| <%= inst_m && inst_m.ljust(cell_width) %><%= class_m && class_m.ljust(cell_width) %> % end % end % % if show_bad_candidates_section % t = bad_candidates_table * Bad candidates : must stay public/protected: . . . . . . . . . . . . . . . . . . . . . % cell_width = 3 + [38, t.longest_value_length].max % t.rows.each do |inst_m, class_m| <%= inst_m && inst_m.ljust(cell_width) %><%= class_m && class_m.ljust(cell_width) %> % end % end % % if show_never_candidates_section % t = never_called_candidates_table * Methods that were never called : . . . . . . . . . . . . . . . . . . . . . % cell_width = 3 + [38, t.longest_value_length].max % t.rows.each do |inst_m, class_m| <%= inst_m && inst_m.ljust(cell_width) %><%= class_m && class_m.ljust(cell_width) %> % end % end % % end ==================================================================================== Report options : % options_footer_parts.each do |o| <%= (value = o[2]) ? "V" : 'x' %> <%= is_default = o[1] %> <%= display = o[0] %> % end (PP_OPTIONS = <%= ENV['PP_OPTIONS'] %>)