C0 code coverage information

Generated on Thu Jun 07 11:33:59 -0400 2007 with rcov 0.8.0


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.
Name Total lines Lines of code Total coverage Code coverage
app/models/player_result.rb 37 34
51.4% 
47.1% 
 1 class PlayerResult < ActiveRecord::Base
 2 	belongs_to :player
 3 	belongs_to :game
 4 	belongs_to :tournament
 5 	validates_numericality_of :tossups, :powers, :negs, :only_integer => true, :gte => 0
 6 	def opponent
 7 		game.teams.select{|k| k != player.team}[0]
 8 	end
 9 	def round
10 		game.round
11 	end
12 
13 	def points
14 		self.tossups * config.tossup + 
15 			self.powers * config.power + 
16 			self.negs * config.neg
17 	end
18 
19 	def points_per_tuh
20 		self.points.to_f / self.tuh.to_f
21 	end
22 
23 	def powers_per_neg
24 		if negs == 0
25 			return (0.0/0.0)
26 		else
27 			return powers.to_f / negs.to_f
28 		end
29 	end
30 	def games_played
31 		if tuh == game.tuh
32 			return 1
33 		else
34 			return tuh.to_f / game.tuh.to_f
35 		end
36 	end
37 end

Generated using the rcov code coverage analysis tool for Ruby version 0.8.0.

Valid XHTML 1.0! Valid CSS!