<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:wfw="http://wellformedweb.org/CommentAPI/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
	xmlns:slash="http://purl.org/rss/1.0/modules/slash/"
	>

<channel>
	<title>SameShirtEveryDay.com &#187; blocks</title>
	<atom:link href="http://sameshirteveryday.com/tag/blocks/feed/" rel="self" type="application/rss+xml" />
	<link>http://sameshirteveryday.com</link>
	<description>Personal blog of the one called Alex Gorbatchev, from Toronto, Canada.</description>
	<lastBuildDate>Wed, 30 Dec 2009 20:00:32 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.3.1</generator>
		<item>
		<title>False positives in rcov</title>
		<link>http://sameshirteveryday.com/2009/04/18/false-positives-in-rcov/</link>
		<comments>http://sameshirteveryday.com/2009/04/18/false-positives-in-rcov/#comments</comments>
		<pubDate>Sat, 18 Apr 2009 19:05:14 +0000</pubDate>
		<dc:creator>Alex Gorbatchev</dc:creator>
				<category><![CDATA[Ruby]]></category>
		<category><![CDATA[blocks]]></category>
		<category><![CDATA[coverage]]></category>
		<category><![CDATA[rcov]]></category>
		<category><![CDATA[Testing]]></category>

		<guid isPermaLink="false">http://sameshirteveryday.com/?p=194</guid>
		<description><![CDATA[I noticed that depending on the syntax used, rcov (0.8.1.2.0 win32) can give false positives. For example, when putting blocks on the same line as methods that execute them, if the method was called and block wasn&#8217;t, the line would still be colored as &#8220;covered&#8221;. In the image above you can see that line #23 isn&#8217;t [...]]]></description>
			<content:encoded><![CDATA[<p><img class="alignnone size-full wp-image-195" title="rcov_false_positives" src="http://sameshirteveryday.com/wp-content/uploads/2009/04/rcov_false_positives.png" alt="rcov_false_positives" width="800" height="195" /></p>
<p>I noticed that depending on the syntax used, rcov (0.8.1.2.0 win32) can give <strong>false positives</strong>. For example, when putting blocks on the same line as methods that execute them, if the method was called and block wasn&#8217;t, the line would still be colored as &#8220;covered&#8221;.</p>
<p>In the image above you can see that line #23 isn&#8217;t covered, where as #28 is. Problem is, I don&#8217;t have any tests yet hitting XML portion.</p>
<p>What&#8217;s even more interesting is that using { } syntax on multiple lines gives false positives just the same &#8211; you have to use do/end syntax specifically. Only, and only then rcov will process the block correctly.</p>
<p>Something to keep in mind.</p>
<p><strong>Update</strong>: I have tested this on OSX and the issue is exactly the same.</p>
]]></content:encoded>
			<wfw:commentRss>http://sameshirteveryday.com/2009/04/18/false-positives-in-rcov/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>

