Index: unittests/tst_utilities.h =================================================================== diff -u -r805119c460b4a266d6401c8705f4427e7fbe270f -rf724589acaa51725f5e5f8a746404d01804efbcf --- unittests/tst_utilities.h (.../tst_utilities.h) (revision 805119c460b4a266d6401c8705f4427e7fbe270f) +++ 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,23 +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(); + 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 tst_safeIncrement_StepZero(); + void tst_safeIncrement_GtMaxValue_Step1 (); + void tst_safeIncrement_GtMaxValue_Step10(); }; -