C0 code coverage information
Generated on Tue May 30 23:34:43 CEST 2006 with rcov 0.5.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.
1 class Ping < ActiveRecord::Base
2 belongs_to :article
3
4 def send_ping(origin_url)
5 uri = URI.parse(self.url)
6 post = "title=#{URI.escape(article.title)}"
7 post << "&excerpt=#{URI.escape(strip_html(article.body_html)[0..254])}"
8 post << "&url=#{origin_url}"
9 post << "&blog_name=#{URI.escape(config[:blog_name])}"
10
11 Net::HTTP.start(uri.host, uri.port) do |http|
12 http.post("#{uri.path}?#{uri.query}", post)
13 end
14 end
15 end
Generated using the rcov code coverage analysis tool for Ruby version 0.5.0.