Review Request: SoK - Unit Test : core/meta/support/PrivateMetaRegistry

Jasneet Bhatti jazneetbhatti at gmail.com
Tue Jul 24 16:37:05 UTC 2012



> On July 22, 2012, 8:19 p.m., Matěj Laitl wrote:
> > tests/core/meta/support/TestPrivateMetaRegistry.cpp, line 165
> > <http://git.reviewboard.kde.org/r/105525/diff/1-2/?file=72251#file72251line165>
> >
> >     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)

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.


- Jasneet


-----------------------------------------------------------
This is an automatically generated e-mail. To reply, visit:
http://git.reviewboard.kde.org/r/105525/#review16229
-----------------------------------------------------------


On July 24, 2012, 4:32 p.m., Jasneet Bhatti wrote:
> 
> -----------------------------------------------------------
> This is an automatically generated e-mail. To reply, visit:
> http://git.reviewboard.kde.org/r/105525/
> -----------------------------------------------------------
> 
> (Updated July 24, 2012, 4:32 p.m.)
> 
> 
> Review request for Amarok, Matěj Laitl and Sven Krohlas.
> 
> 
> Description
> -------
> 
> Added unit test for core/meta/support/PrivateMetaRegistry.
> 
> Also, tidied up the code style in the class being tested.
> 
> 
> Diffs
> -----
> 
>   src/core/meta/support/PrivateMetaRegistry.h f5959ac 
>   tests/core/meta/CMakeLists.txt 3ae78c9 
>   tests/core/meta/support/CMakeLists.txt PRE-CREATION 
>   tests/core/meta/support/TestPrivateMetaRegistry.h PRE-CREATION 
>   tests/core/meta/support/TestPrivateMetaRegistry.cpp PRE-CREATION 
> 
> Diff: http://git.reviewboard.kde.org/r/105525/diff/
> 
> 
> Testing
> -------
> 
> 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 *********
> 
> 
> Thanks,
> 
> Jasneet Bhatti
> 
>

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.kde.org/pipermail/amarok-devel/attachments/20120724/48c211a2/attachment.html>


More information about the Amarok-devel mailing list