<feed xmlns='http://www.w3.org/2005/Atom'>
<title>ruby.git/test/coverage/test_coverage.rb, branch v3_3_11</title>
<subtitle>The Ruby Programming Language</subtitle>
<link rel='alternate' type='text/html' href='https://git.ruby-lang.org/ruby.git/'/>
<entry>
<title>merge revision(s) 0d6263bd416338a339651fb97fe4d62701704c4b: [Backport #21220]</title>
<updated>2025-05-17T06:21:08+00:00</updated>
<author>
<name>nagachika</name>
<email>nagachika@ruby-lang.org</email>
</author>
<published>2025-05-17T06:21:08+00:00</published>
<link rel='alternate' type='text/html' href='https://git.ruby-lang.org/ruby.git/commit/?id=b1b6752fbeb2d23dbea639bd4b331c9e8b56f49c'/>
<id>b1b6752fbeb2d23dbea639bd4b331c9e8b56f49c</id>
<content type='text'>
	Fix coverage measurement for negative line numbers

	Fixes [Bug #21220]

	Co-Authored-By: Mike Bourgeous &lt;mike@mikebourgeous.com&gt;
	Co-Authored-By: Jean Boussier &lt;jean.boussier@gmail.com&gt;
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
	Fix coverage measurement for negative line numbers

	Fixes [Bug #21220]

	Co-Authored-By: Mike Bourgeous &lt;mike@mikebourgeous.com&gt;
	Co-Authored-By: Jean Boussier &lt;jean.boussier@gmail.com&gt;
</pre>
</div>
</content>
</entry>
<entry>
<title>Fix method coverage comparisons</title>
<updated>2023-10-16T00:48:05+00:00</updated>
<author>
<name>Nobuyoshi Nakada</name>
<email>nobu@ruby-lang.org</email>
</author>
<published>2023-10-15T12:15:43+00:00</published>
<link rel='alternate' type='text/html' href='https://git.ruby-lang.org/ruby.git/commit/?id=7e51cadc2e3574996f63e4afd235d6f3e19f3a59'/>
<id>7e51cadc2e3574996f63e4afd235d6f3e19f3a59</id>
<content type='text'>
Although Ruby's hashes preserve the insertion order, the ordering of
method coverage results is inherently nondeterministic, because they
are collected using `ObjectSpace`.
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
Although Ruby's hashes preserve the insertion order, the ordering of
method coverage results is inherently nondeterministic, because they
are collected using `ObjectSpace`.
</pre>
</div>
</content>
</entry>
<entry>
<title>Revert "Don't reset line coverage for evaled code. (#8330)"</title>
<updated>2023-09-04T10:52:08+00:00</updated>
<author>
<name>Yusuke Endoh</name>
<email>mame@ruby-lang.org</email>
</author>
<published>2023-09-04T10:51:40+00:00</published>
<link rel='alternate' type='text/html' href='https://git.ruby-lang.org/ruby.git/commit/?id=4f4c1170bc988104f3bd3321558099af7ea19c18'/>
<id>4f4c1170bc988104f3bd3321558099af7ea19c18</id>
<content type='text'>
This reverts commit 7e0f5df2f99693267d61636d23da47f79924e9d5.

https://bugs.ruby-lang.org/issues/19857#note-7
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
This reverts commit 7e0f5df2f99693267d61636d23da47f79924e9d5.

https://bugs.ruby-lang.org/issues/19857#note-7
</pre>
</div>
</content>
</entry>
<entry>
<title>Don't reset line coverage for evaled code. (#8330)</title>
<updated>2023-09-04T01:31:25+00:00</updated>
<author>
<name>Samuel Williams</name>
<email>samuel.williams@oriontransfer.co.nz</email>
</author>
<published>2023-09-04T01:31:25+00:00</published>
<link rel='alternate' type='text/html' href='https://git.ruby-lang.org/ruby.git/commit/?id=7e0f5df2f99693267d61636d23da47f79924e9d5'/>
<id>7e0f5df2f99693267d61636d23da47f79924e9d5</id>
<content type='text'>
* Add failing test.</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
* Add failing test.</pre>
</div>
</content>
</entry>
<entry>
<title>More coverage tests &amp; specs. (#7171)</title>
<updated>2023-01-22T00:49:13+00:00</updated>
<author>
<name>Samuel Williams</name>
<email>samuel.williams@oriontransfer.co.nz</email>
</author>
<published>2023-01-22T00:49:13+00:00</published>
<link rel='alternate' type='text/html' href='https://git.ruby-lang.org/ruby.git/commit/?id=f5ea43a2e61789357e9c4b374b4bc6756abeae17'/>
<id>f5ea43a2e61789357e9c4b374b4bc6756abeae17</id>
<content type='text'>
* Add spec for eval and line coverage.

* Add test for main file coverage.</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
* Add spec for eval and line coverage.

* Add test for main file coverage.</pre>
</div>
</content>
</entry>
<entry>
<title>Test some missing coverage too. (#7041)</title>
<updated>2023-01-18T22:59:51+00:00</updated>
<author>
<name>Samuel Williams</name>
<email>samuel.williams@oriontransfer.co.nz</email>
</author>
<published>2023-01-18T22:59:51+00:00</published>
<link rel='alternate' type='text/html' href='https://git.ruby-lang.org/ruby.git/commit/?id=edd00697a88892b477b498b796d9f62f9ec84e28'/>
<id>edd00697a88892b477b498b796d9f62f9ec84e28</id>
<content type='text'>
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
</pre>
</div>
</content>
</entry>
<entry>
<title>Coverage.supported? recognizes oneshot_lines mode (#7040)</title>
<updated>2022-12-29T08:23:25+00:00</updated>
<author>
<name>Kevin Murphy</name>
<email>kevin-j-m@users.noreply.github.com</email>
</author>
<published>2022-12-29T08:23:25+00:00</published>
<link rel='alternate' type='text/html' href='https://git.ruby-lang.org/ruby.git/commit/?id=b3d330c39ebbf27cefc2d83109dad9e0b3b0e94f'/>
<id>b3d330c39ebbf27cefc2d83109dad9e0b3b0e94f</id>
<content type='text'>
This adds oneshot_lines as a mode of coverage that is supported.</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
This adds oneshot_lines as a mode of coverage that is supported.</pre>
</div>
</content>
</entry>
<entry>
<title>Fix false LocalJumpError when branch coverage is enabled</title>
<updated>2022-11-08T05:37:08+00:00</updated>
<author>
<name>Yusuke Endoh</name>
<email>mame@ruby-lang.org</email>
</author>
<published>2022-11-08T02:52:22+00:00</published>
<link rel='alternate' type='text/html' href='https://git.ruby-lang.org/ruby.git/commit/?id=4a7d6c2852aa734506be83c932168e8f974687b5'/>
<id>4a7d6c2852aa734506be83c932168e8f974687b5</id>
<content type='text'>
`throw TAG_BREAK` instruction makes a jump only if the continuation of
catch of TAG_BREAK exactly matches the instruction immediately following
the "send" instruction that is currently being executed. Otherwise, it
seems to determine break from proc-closure.

Branch coverage may insert some recording instructions after "send"
instruction, which broke the conditions for TAG_BREAK to work properly.

This change forces to set the continuation of catch of TAG_BREAK
immediately after "send" (or "invokesuper") instruction.

[Bug #18991]
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
`throw TAG_BREAK` instruction makes a jump only if the continuation of
catch of TAG_BREAK exactly matches the instruction immediately following
the "send" instruction that is currently being executed. Otherwise, it
seems to determine break from proc-closure.

Branch coverage may insert some recording instructions after "send"
instruction, which broke the conditions for TAG_BREAK to work properly.

This change forces to set the continuation of catch of TAG_BREAK
immediately after "send" (or "invokesuper") instruction.

[Bug #18991]
</pre>
</div>
</content>
</entry>
<entry>
<title>Change a tab to spaces</title>
<updated>2022-10-17T02:30:07+00:00</updated>
<author>
<name>yui-knk</name>
<email>spiketeika@gmail.com</email>
</author>
<published>2022-10-16T12:40:42+00:00</published>
<link rel='alternate' type='text/html' href='https://git.ruby-lang.org/ruby.git/commit/?id=e4191ac1ec7940b37bfeaf09c000cf46d2db5200'/>
<id>e4191ac1ec7940b37bfeaf09c000cf46d2db5200</id>
<content type='text'>
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
</pre>
</div>
</content>
</entry>
<entry>
<title>Add `Coverage.supported?` to detect what modes are supported.</title>
<updated>2022-09-28T20:44:14+00:00</updated>
<author>
<name>Samuel Williams</name>
<email>samuel.williams@oriontransfer.co.nz</email>
</author>
<published>2022-09-28T11:08:03+00:00</published>
<link rel='alternate' type='text/html' href='https://git.ruby-lang.org/ruby.git/commit/?id=bd2fbd35888413217337dd327ad90015c0322d12'/>
<id>bd2fbd35888413217337dd327ad90015c0322d12</id>
<content type='text'>
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
</pre>
</div>
</content>
</entry>
</feed>
