<html>
<body>
<div style="font-family: Verdana, Arial, Helvetica, Sans-Serif;">
<table bgcolor="#f9f3c9" width="100%" cellpadding="8" style="border: 1px #c9c399 solid;">
<tr>
<td>
This is an automatically generated e-mail. To reply, visit:
<a href="http://git.reviewboard.kde.org/r/105525/">http://git.reviewboard.kde.org/r/105525/</a>
</td>
</tr>
</table>
<br />
<blockquote style="margin-left: 1em; border-left: 2px solid #d0d0d0; padding-left: 10px;">
<p style="margin-top: 0;">On July 22nd, 2012, 8:19 p.m., <b>Matěj Laitl</b> wrote:</p>
<blockquote style="margin-left: 1em; border-left: 2px solid #d0d0d0; padding-left: 10px;">
<table width="100%" border="0" bgcolor="white" style="border: 1px solid #C0C0C0; border-collapse: collapse; margin: 2px padding: 2px;">
<thead>
<tr>
<th colspan="4" bgcolor="#F0F0F0" style="border-bottom: 1px solid #C0C0C0; font-size: 9pt; padding: 4px 8px; text-align: left;">
<a href="http://git.reviewboard.kde.org/r/105525/diff/1-2/?file=72251#file72251line165" style="color: black; font-weight: bold; text-decoration: underline;">tests/core/meta/support/TestPrivateMetaRegistry.cpp</a>
<span style="font-weight: normal;">
(Diff revisions 1 - 2)
</span>
</th>
</tr>
</thead>
<tbody style="background-color: #e4d9cb; padding: 4px 8px; text-align: center;">
<tr>
<td colspan="4"><pre style="font-size: 8pt; line-height: 140%; margin: 0; ">TestPrivateMetaRegistry::testInsertYear()</pre></td>
</tr>
</tbody>
<tbody>
<tr>
<th bgcolor="#e9eaa8" style="border-right: 1px solid #C0C0C0;" align="right"><font size="2">165</font></th>
<td bgcolor="#fdfebc" width="50%"><pre style="font-size: 8pt; line-height: 140%; margin: 0; "> <span class="n">Q<span class="hl">COMPARE</span></span><span class="p">(</span> <span class="n">PrivateMetaRegistry</span><span class="o">::</span><span class="n">instance</span><span class="p">()</span><span class="o">-></span><span class="n">album</span><span class="p">(</span> <span class="s">"invalid"</span><span class="p">,</span> <span class="s">"invalid"</span> <span class="p">)<span class="hl">.</span></span><span class="n"><span class="hl">isNull</span></span><span class="p"><span class="hl">(),</span></span><span class="hl"> </span><span class="kc"><span class="hl">true</span></span> <span class="p">);</span></pre></td>
<th bgcolor="#e9eaa8" style="border-left: 1px solid #C0C0C0; border-right: 1px solid #C0C0C0;" align="right"><font size="2">165</font></th>
<td bgcolor="#fdfebc" width="50%"><pre style="font-size: 8pt; line-height: 140%; margin: 0; "> <span class="n">Q<span class="hl">VERIFY</span></span><span class="p">(</span> <span class="n">PrivateMetaRegistry</span><span class="o">::</span><span class="n">instance</span><span class="p">()</span><span class="o">-></span><span class="n">album</span><span class="p">(</span> <span class="s">"invalid"</span><span class="p">,</span> <span class="s">"invalid"</span> <span class="p">)</span> <span class="p">);</span></pre></td>
</tr>
</tbody>
</table>
<pre style="white-space: pre-wrap; white-space: -moz-pre-wrap; white-space: -pre-wrap; white-space: -o-pre-wrap; word-wrap: break-word;">Oh, isn't this an opposite? You verify the fact they are non-null, but in fact you should verify they are null, right? (you didn't update the output, I wonder if this tests pass as written here)</pre>
</blockquote>
</blockquote>
<pre style="margin-left: 1em; white-space: pre-wrap; white-space: -moz-pre-wrap; white-space: -pre-wrap; white-space: -o-pre-wrap; word-wrap: break-word;">Oops ! Was in a hurry then but will not drop standards again.
Rest assured I would never have pushed a broken test to master though. I always build and check twice before pushing and this issue would have been resolved then if not here.</pre>
<br />
<p>- Jasneet</p>
<br />
<p>On July 24th, 2012, 4:32 p.m., Jasneet Bhatti wrote:</p>
<table bgcolor="#fefadf" width="100%" cellspacing="0" cellpadding="8" style="background-image: url('http://git.reviewboard.kde.org/media/rb/images/review_request_box_top_bg.png'); background-position: left top; background-repeat: repeat-x; border: 1px black solid;">
<tr>
<td>
<div>Review request for Amarok, Matěj Laitl and Sven Krohlas.</div>
<div>By Jasneet Bhatti.</div>
<p style="color: grey;"><i>Updated July 24, 2012, 4:32 p.m.</i></p>
<h1 style="color: #575012; font-size: 10pt; margin-top: 1.5em;">Description </h1>
<table width="100%" bgcolor="#ffffff" cellspacing="0" cellpadding="10" style="border: 1px solid #b8b5a0">
<tr>
<td>
<pre style="margin: 0; padding: 0; white-space: pre-wrap; white-space: -moz-pre-wrap; white-space: -pre-wrap; white-space: -o-pre-wrap; word-wrap: break-word;">Added unit test for core/meta/support/PrivateMetaRegistry.
Also, tidied up the code style in the class being tested.</pre>
</td>
</tr>
</table>
<h1 style="color: #575012; font-size: 10pt; margin-top: 1.5em;">Testing </h1>
<table width="100%" bgcolor="#ffffff" cellspacing="0" cellpadding="10" style="border: 1px solid #b8b5a0">
<tr>
<td>
<pre style="margin: 0; padding: 0; white-space: pre-wrap; white-space: -moz-pre-wrap; white-space: -pre-wrap; white-space: -o-pre-wrap; word-wrap: break-word;">Builds, links and runs fine.
Output of running test with -v2 flag:
********* Start testing of TestPrivateMetaRegistry *********
Config: Using QTest library 4.8.1, Qt 4.8.1
INFO : TestPrivateMetaRegistry::initTestCase() entering
QSYSTEM: TestPrivateMetaRegistry::initTestCase() qttest(16692)/kdecore (K*TimeZone*): No time zone information obtained from ktimezoned
PASS : TestPrivateMetaRegistry::initTestCase()
INFO : TestPrivateMetaRegistry::testInsertAlbum() entering
INFO : TestPrivateMetaRegistry::testInsertAlbum(Track01.ogg) COMPARE()
Loc: [/home/jasneet/amarok/tests/core/meta/support/TestPrivateMetaRegistry.cpp(91)]
INFO : TestPrivateMetaRegistry::testInsertAlbum(Track02.ogg) COMPARE()
Loc: [/home/jasneet/amarok/tests/core/meta/support/TestPrivateMetaRegistry.cpp(91)]
INFO : TestPrivateMetaRegistry::testInsertAlbum(Platz 01.mp3) COMPARE()
Loc: [/home/jasneet/amarok/tests/core/meta/support/TestPrivateMetaRegistry.cpp(91)]
INFO : TestPrivateMetaRegistry::testInsertAlbum(Platz 02.mp3) COMPARE()
Loc: [/home/jasneet/amarok/tests/core/meta/support/TestPrivateMetaRegistry.cpp(91)]
INFO : TestPrivateMetaRegistry::testInsertAlbum(Platz 03.mp3) COMPARE()
Loc: [/home/jasneet/amarok/tests/core/meta/support/TestPrivateMetaRegistry.cpp(91)]
PASS : TestPrivateMetaRegistry::testInsertAlbum()
INFO : TestPrivateMetaRegistry::testInsertArtist() entering
INFO : TestPrivateMetaRegistry::testInsertArtist(Track01.ogg) COMPARE()
Loc: [/home/jasneet/amarok/tests/core/meta/support/TestPrivateMetaRegistry.cpp(108)]
INFO : TestPrivateMetaRegistry::testInsertArtist(Track02.ogg) COMPARE()
Loc: [/home/jasneet/amarok/tests/core/meta/support/TestPrivateMetaRegistry.cpp(108)]
INFO : TestPrivateMetaRegistry::testInsertArtist(Platz 01.mp3) COMPARE()
Loc: [/home/jasneet/amarok/tests/core/meta/support/TestPrivateMetaRegistry.cpp(108)]
INFO : TestPrivateMetaRegistry::testInsertArtist(Platz 02.mp3) COMPARE()
Loc: [/home/jasneet/amarok/tests/core/meta/support/TestPrivateMetaRegistry.cpp(108)]
INFO : TestPrivateMetaRegistry::testInsertArtist(Platz 03.mp3) COMPARE()
Loc: [/home/jasneet/amarok/tests/core/meta/support/TestPrivateMetaRegistry.cpp(108)]
PASS : TestPrivateMetaRegistry::testInsertArtist()
INFO : TestPrivateMetaRegistry::testInsertComposer() entering
INFO : TestPrivateMetaRegistry::testInsertComposer(Track01.ogg) COMPARE()
Loc: [/home/jasneet/amarok/tests/core/meta/support/TestPrivateMetaRegistry.cpp(125)]
INFO : TestPrivateMetaRegistry::testInsertComposer(Track02.ogg) COMPARE()
Loc: [/home/jasneet/amarok/tests/core/meta/support/TestPrivateMetaRegistry.cpp(125)]
INFO : TestPrivateMetaRegistry::testInsertComposer(Platz 01.mp3) COMPARE()
Loc: [/home/jasneet/amarok/tests/core/meta/support/TestPrivateMetaRegistry.cpp(125)]
INFO : TestPrivateMetaRegistry::testInsertComposer(Platz 02.mp3) COMPARE()
Loc: [/home/jasneet/amarok/tests/core/meta/support/TestPrivateMetaRegistry.cpp(125)]
INFO : TestPrivateMetaRegistry::testInsertComposer(Platz 03.mp3) COMPARE()
Loc: [/home/jasneet/amarok/tests/core/meta/support/TestPrivateMetaRegistry.cpp(125)]
PASS : TestPrivateMetaRegistry::testInsertComposer()
INFO : TestPrivateMetaRegistry::testInsertGenre() entering
INFO : TestPrivateMetaRegistry::testInsertGenre(Track01.ogg) COMPARE()
Loc: [/home/jasneet/amarok/tests/core/meta/support/TestPrivateMetaRegistry.cpp(142)]
INFO : TestPrivateMetaRegistry::testInsertGenre(Track02.ogg) COMPARE()
Loc: [/home/jasneet/amarok/tests/core/meta/support/TestPrivateMetaRegistry.cpp(142)]
INFO : TestPrivateMetaRegistry::testInsertGenre(Platz 01.mp3) COMPARE()
Loc: [/home/jasneet/amarok/tests/core/meta/support/TestPrivateMetaRegistry.cpp(142)]
INFO : TestPrivateMetaRegistry::testInsertGenre(Platz 02.mp3) COMPARE()
Loc: [/home/jasneet/amarok/tests/core/meta/support/TestPrivateMetaRegistry.cpp(142)]
INFO : TestPrivateMetaRegistry::testInsertGenre(Platz 03.mp3) COMPARE()
Loc: [/home/jasneet/amarok/tests/core/meta/support/TestPrivateMetaRegistry.cpp(142)]
PASS : TestPrivateMetaRegistry::testInsertGenre()
INFO : TestPrivateMetaRegistry::testInsertYear() entering
INFO : TestPrivateMetaRegistry::testInsertYear(Track01.ogg) COMPARE()
Loc: [/home/jasneet/amarok/tests/core/meta/support/TestPrivateMetaRegistry.cpp(159)]
INFO : TestPrivateMetaRegistry::testInsertYear(Track02.ogg) COMPARE()
Loc: [/home/jasneet/amarok/tests/core/meta/support/TestPrivateMetaRegistry.cpp(159)]
INFO : TestPrivateMetaRegistry::testInsertYear(Platz 01.mp3) COMPARE()
Loc: [/home/jasneet/amarok/tests/core/meta/support/TestPrivateMetaRegistry.cpp(159)]
INFO : TestPrivateMetaRegistry::testInsertYear(Platz 02.mp3) COMPARE()
Loc: [/home/jasneet/amarok/tests/core/meta/support/TestPrivateMetaRegistry.cpp(159)]
INFO : TestPrivateMetaRegistry::testInsertYear(Platz 03.mp3) COMPARE()
Loc: [/home/jasneet/amarok/tests/core/meta/support/TestPrivateMetaRegistry.cpp(159)]
PASS : TestPrivateMetaRegistry::testInsertYear()
INFO : TestPrivateMetaRegistry::testNull() entering
INFO : TestPrivateMetaRegistry::testNull() COMPARE()
Loc: [/home/jasneet/amarok/tests/core/meta/support/TestPrivateMetaRegistry.cpp(165)]
INFO : TestPrivateMetaRegistry::testNull() COMPARE()
Loc: [/home/jasneet/amarok/tests/core/meta/support/TestPrivateMetaRegistry.cpp(166)]
INFO : TestPrivateMetaRegistry::testNull() COMPARE()
Loc: [/home/jasneet/amarok/tests/core/meta/support/TestPrivateMetaRegistry.cpp(167)]
INFO : TestPrivateMetaRegistry::testNull() COMPARE()
Loc: [/home/jasneet/amarok/tests/core/meta/support/TestPrivateMetaRegistry.cpp(168)]
INFO : TestPrivateMetaRegistry::testNull() COMPARE()
Loc: [/home/jasneet/amarok/tests/core/meta/support/TestPrivateMetaRegistry.cpp(169)]
PASS : TestPrivateMetaRegistry::testNull()
INFO : TestPrivateMetaRegistry::cleanupTestCase() entering
PASS : TestPrivateMetaRegistry::cleanupTestCase()
Totals: 8 passed, 0 failed, 0 skipped
********* Finished testing of TestPrivateMetaRegistry *********
</pre>
</td>
</tr>
</table>
<h1 style="color: #575012; font-size: 10pt; margin-top: 1.5em;">Diffs</b> </h1>
<ul style="margin-left: 3em; padding-left: 0;">
<li>src/core/meta/support/PrivateMetaRegistry.h <span style="color: grey">(f5959ac)</span></li>
<li>tests/core/meta/CMakeLists.txt <span style="color: grey">(3ae78c9)</span></li>
<li>tests/core/meta/support/CMakeLists.txt <span style="color: grey">(PRE-CREATION)</span></li>
<li>tests/core/meta/support/TestPrivateMetaRegistry.h <span style="color: grey">(PRE-CREATION)</span></li>
<li>tests/core/meta/support/TestPrivateMetaRegistry.cpp <span style="color: grey">(PRE-CREATION)</span></li>
</ul>
<p><a href="http://git.reviewboard.kde.org/r/105525/diff/" style="margin-left: 3em;">View Diff</a></p>
</td>
</tr>
</table>
</div>
</body>
</html>