D10160: Test for Crypt in QQ Protocol

Himanshu Vishwakarma himvish997 at gmail.com
Wed Jan 31 12:48:33 UTC 2018


Hi,

I have some difficulties in making this test into the data-driven test.
For the data-driven, I have the problem in defining the array type the data
function. how to use this function to store the array type values

QTest::addColumn<int>("result");

here in the example defining the Int
data type
but
​ ​
I
​ ​
want to use
​ ​
its
n *array* instead of
*int.*

I try Q_DECLARE_METATYPE()   to define it like this
/**************************************************
​namespace CryptData
{
   struct Data {
       unsigned int a[2];
   };
   struct Key {
       unsigned int k[4];
   };
}
Q_DECLARE_METATYPE(CryptData::Data)
Q_DECLARE_METATYPE(CryptData::Key)
/*******************************************************
but in this method I face lot of troubles in initializing the value by
function newRow().

Can I test with more values instead of data-driven?
I don't know what should I do.

please help!!

Regards,
Himanshu Vishwakarma

On Sun, Jan 28, 2018 at 8:12 PM, Vijay Krishnavanshi <
noreply at phabricator.kde.org> wrote:

> vijaykrishnavanshi added inline comments. View Revision
> <https://phabricator.kde.org/D10160>
> *INLINE COMMENTS*
> View Inline <https://phabricator.kde.org/D10160#inline-46737>
> qqcrypttest.cpp:11
> private slots:
> void CryptTest();
> };
>
> Make this test data-driven.
> Link: http://doc.qt.io/qt-5/qttestlib-tutorial2-example.html
>
> *REVISION DETAIL*
> https://phabricator.kde.org/D10160
>
> *To: *himanshuvishwakarma, vijaykrishnavanshi, pali, Kopete
> *Cc: *cochise
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.kde.org/pipermail/kopete-devel/attachments/20180131/1b96f1f4/attachment.html>


More information about the kopete-devel mailing list