Index: unittests/tst_utilities.h =================================================================== diff -u -re02b2d465b145702dc41965b2e7da154857eea75 -rf724589acaa51725f5e5f8a746404d01804efbcf --- unittests/tst_utilities.h (.../tst_utilities.h) (revision e02b2d465b145702dc41965b2e7da154857eea75) +++ unittests/tst_utilities.h (.../tst_utilities.h) (revision f724589acaa51725f5e5f8a746404d01804efbcf) @@ -1,14 +1,15 @@ /*! * - * Copyright (c) 2019-2020 Diality Inc. - All Rights Reserved. - * copyright - * THIS CODE MAY NOT BE COPIED OR REPRODUCED IN ANY FORM, - * IN PART OR IN WHOLE, - * WITHOUT THE EXPLICIT PERMISSION OF THE COPYRIGHT OWNER. + * Copyright (c) 2020-2024 Diality Inc. - All Rights Reserved. + * \copyright + * THIS CODE MAY NOT BE COPIED OR REPRODUCED IN ANY FORM, IN PART OR IN + * WHOLE, WITHOUT THE EXPLICIT PERMISSION OF THE COPYRIGHT OWNER. * - * file tst_utilities.h - * date 01/08/2019 - * author Behrouz NematiPour + * \file tst_utilities.h + * \author (last) Dara Navaei + * \date (last) 03-Feb-2024 + * \author (original) Behrouz NematiPour + * \date (original) 08-Jan-2020 * */ #pragma once @@ -20,31 +21,34 @@ { Q_OBJECT - bool _emited = false ; - QByteArray _expected {} ; - QVariantList _data {} ; - int _action = -1 ; - public: explicit tst_utilities(QObject *parent = nullptr); private slots: + void tst_getValue_len_log(); + void tst_getValue_len_lt(); + void tst_getValue_len_eq(); + void tst_getValue_len_gt(); + void tst_floatCompare_noMatch(); + void tst_floatCompare_isMatch(); + void tst_getbits_NoError(); + void tst_getbits_IsError(); + void tst_fromvariant_NoString(); + void tst_fromvariant_IsString(); + void tst_fromvariant_ByteArray(); + void tst_fromvariant_Float(); + void tst_fromvariant_UInt(); + void tst_fromvariant_Int_Pos(); + void tst_fromvariant_Int_Neg(); + void tst_fromvariant_List(); + void tst_fromvariant_Bool_True(); + void tst_fromvariant_Bool_False(); + void tst_fromvariant_Undefined(); + void tst_toStringList_Default(); + void tst_toStringList_RemoveDuplicate(); + void tst_toStringList_Prefix(); - // void initTestCase_data(); - - // will be called before the first test function is executed. - // void initTestCase(); - - // will be called before each test function is executed. - // void init(); - - // will be called after every test function. - // void cleanup(); - - // will be called after the last test function was executed. - // void cleanupTestCase(); - - void getValue_len(); - + void tst_safeIncrement_StepZero(); + void tst_safeIncrement_GtMaxValue_Step1 (); + void tst_safeIncrement_GtMaxValue_Step10(); }; -