D20032: Convert string formatting tests to be data driven

Aleix Pol Gonzalez noreply at phabricator.kde.org
Mon Mar 25 13:58:30 GMT 2019


apol added inline comments.

INLINE COMMENTS

> bruns wrote in propertyinfotest.cpp:71
> This saves adding the `QVariant(...)` around each value, and avoids the repeated formatting of the row name/data index. The property enum is used twice in each addRow.

And instead it makes you create a weird local struct and loop to feed to QTest. I don't find it very convincing.

REPOSITORY
  R286 KFileMetaData

REVISION DETAIL
  https://phabricator.kde.org/D20032

To: bruns, #baloo, #frameworks, ngraham, astippich
Cc: apol, kde-frameworks-devel, gennad, domson, ashaposhnikov, michaelh, astippich, spoorun, ngraham, bruns, abrahams
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.kde.org/pipermail/kde-frameworks-devel/attachments/20190325/9ce69aa3/attachment-0001.html>


More information about the Kde-frameworks-devel mailing list