@@ -165,6 +165,74 @@ void test_ut_kvp_profile_list_count(void)
165165 UT_LOG_STEP ( "test_ut_kvp_profile_list_count - end" );
166166}
167167
168+ void test_ut_kvp_profile_int8 (void )
169+ {
170+ int8_t checkFieldPositive = 120 ;
171+ int8_t checkFieldNegative = -120 ;
172+ int8_t result ;
173+ UT_LOG_STEP ("test_ut_kvp_profile_int8 - start" );
174+ UT_ASSERT_KVP_EQUAL_PROFILE_INT8 ( checkFieldPositive , "decodeTest/checkInt8Positive" );
175+ UT_ASSERT_KVP_EQUAL_PROFILE_INT8 ( checkFieldPositive , "decodeTest.checkInt8Positive" );
176+ UT_ASSERT_KVP_EQUAL_PROFILE_INT8 ( checkFieldNegative , "decodeTest/checkInt8Negative" );
177+ UT_ASSERT_KVP_EQUAL_PROFILE_INT8 ( checkFieldNegative , "decodeTest.checkInt8Negative" );
178+
179+ result = UT_KVP_PROFILE_GET_INT8 ("decodeTest.checkInt8Positive" );
180+ UT_ASSERT_EQUAL (result , checkFieldPositive );
181+
182+ UT_LOG_STEP ( "test_ut_kvp_profile_int8 - end" );
183+ }
184+
185+ void test_ut_kvp_profile_int16 (void )
186+ {
187+ int16_t checkFieldPositive = 30000 ;
188+ int16_t checkFieldNegative = -30000 ;
189+ int16_t result ;
190+ UT_LOG_STEP ("test_ut_kvp_profile_int16 - start" );
191+ UT_ASSERT_KVP_EQUAL_PROFILE_INT16 ( checkFieldPositive , "decodeTest/checkInt16Positive" );
192+ UT_ASSERT_KVP_EQUAL_PROFILE_INT16 ( checkFieldPositive , "decodeTest.checkInt16Positive" );
193+ UT_ASSERT_KVP_EQUAL_PROFILE_INT16 ( checkFieldNegative , "decodeTest/checkInt16Negative" );
194+ UT_ASSERT_KVP_EQUAL_PROFILE_INT16 ( checkFieldNegative , "decodeTest.checkInt16Negative" );
195+
196+ result = UT_KVP_PROFILE_GET_INT16 ("decodeTest.checkInt16Positive" );
197+ UT_ASSERT_EQUAL (result , checkFieldPositive );
198+
199+ UT_LOG_STEP ( "test_ut_kvp_profile_int16 - end" );
200+ }
201+
202+ void test_ut_kvp_profile_int32 (void )
203+ {
204+ int32_t checkFieldPositive = 2000000000 ;
205+ int32_t checkFieldNegative = -2000000000 ;
206+ int32_t result ;
207+ UT_LOG_STEP ("test_ut_kvp_profile_int32 - start" );
208+ UT_ASSERT_KVP_EQUAL_PROFILE_INT32 ( checkFieldPositive , "decodeTest/checkInt32Positive" );
209+ UT_ASSERT_KVP_EQUAL_PROFILE_INT32 ( checkFieldPositive , "decodeTest.checkInt32Positive" );
210+ UT_ASSERT_KVP_EQUAL_PROFILE_INT32 ( checkFieldNegative , "decodeTest/checkInt32Negative" );
211+ UT_ASSERT_KVP_EQUAL_PROFILE_INT32 ( checkFieldNegative , "decodeTest.checkInt32Negative" );
212+
213+ result = UT_KVP_PROFILE_GET_INT32 ("decodeTest.checkInt32Positive" );
214+ UT_ASSERT_EQUAL (result , checkFieldPositive );
215+
216+ UT_LOG_STEP ("test_ut_kvp_profile_int32 - end" );
217+ }
218+
219+ void test_ut_kvp_profile_int64 (void )
220+ {
221+ int64_t checkFieldPositive = 9000000000000000000LL ;
222+ int64_t checkFieldNegative = -9000000000000000000LL ;
223+ int64_t result ;
224+ UT_LOG_STEP ("test_ut_kvp_profile_int64 - start" );
225+ UT_ASSERT_KVP_EQUAL_PROFILE_INT64 ( checkFieldPositive , "decodeTest/checkInt64Positive" );
226+ UT_ASSERT_KVP_EQUAL_PROFILE_INT64 ( checkFieldPositive , "decodeTest.checkInt64Positive" );
227+ UT_ASSERT_KVP_EQUAL_PROFILE_INT64 ( checkFieldNegative , "decodeTest/checkInt64Negative" );
228+ UT_ASSERT_KVP_EQUAL_PROFILE_INT64 ( checkFieldNegative , "decodeTest.checkInt64Negative" );
229+
230+ result = UT_KVP_PROFILE_GET_INT64 ("decodeTest.checkInt64Positive" );
231+ UT_ASSERT (result == checkFieldPositive );
232+
233+ UT_LOG_STEP ("test_ut_kvp_profile_int64 - end" );
234+ }
235+
168236void test_ut_kvp_profile_open ( void )
169237{
170238 UT_LOG_STEP ( "test_ut_kvp_profile_open - start" );
@@ -251,6 +319,10 @@ void register_kvp_profile_testing_functions(void)
251319 UT_add_test (gpAssertSuite2 , "kvp profile uint16" , test_ut_kvp_profile_uint16 );
252320 UT_add_test (gpAssertSuite2 , "kvp profile uint32" , test_ut_kvp_profile_uint32 );
253321 UT_add_test (gpAssertSuite2 , "kvp profile uint64" , test_ut_kvp_profile_uint64 );
322+ UT_add_test (gpAssertSuite2 , "kvp profile int8" , test_ut_kvp_profile_int8 );
323+ UT_add_test (gpAssertSuite2 , "kvp profile int16" , test_ut_kvp_profile_int16 );
324+ UT_add_test (gpAssertSuite2 , "kvp profile int32" , test_ut_kvp_profile_int32 );
325+ UT_add_test (gpAssertSuite2 , "kvp profile int64" , test_ut_kvp_profile_int64 );
254326 UT_add_test (gpAssertSuite2 , "kvp profile string" , test_ut_kvp_profile_string );
255327 UT_add_test (gpAssertSuite2 , "kvp profile bool" , test_ut_kvp_profile_bool );
256328 UT_add_test (gpAssertSuite2 , "kvp profile list count" , test_ut_kvp_profile_list_count );
@@ -264,6 +336,10 @@ void register_kvp_profile_testing_functions(void)
264336 UT_add_test (gpAssertSuite3 , "kvp profile uint16" , test_ut_kvp_profile_uint16 );
265337 UT_add_test (gpAssertSuite3 , "kvp profile uint32" , test_ut_kvp_profile_uint32 );
266338 UT_add_test (gpAssertSuite3 , "kvp profile uint64" , test_ut_kvp_profile_uint64 );
339+ UT_add_test (gpAssertSuite3 , "kvp profile int8" , test_ut_kvp_profile_int8 );
340+ UT_add_test (gpAssertSuite3 , "kvp profile int16" , test_ut_kvp_profile_int16 );
341+ UT_add_test (gpAssertSuite3 , "kvp profile int32" , test_ut_kvp_profile_int32 );
342+ UT_add_test (gpAssertSuite3 , "kvp profile int64" , test_ut_kvp_profile_int64 );
267343 UT_add_test (gpAssertSuite3 , "kvp profile string" , test_ut_kvp_profile_string );
268344 UT_add_test (gpAssertSuite3 , "kvp profile bool" , test_ut_kvp_profile_bool );
269345 UT_add_test (gpAssertSuite3 , "kvp profile list count" , test_ut_kvp_profile_list_count );
0 commit comments