Use condition check macro for line coverage 21/278921/1
authorSuyeon Hwang <stom.hwang@samsung.com>
Wed, 13 Jul 2022 10:38:18 +0000 (19:38 +0900)
committerSuyeon Hwang <stom.hwang@samsung.com>
Thu, 28 Jul 2022 05:23:16 +0000 (14:23 +0900)
commit41cf232aa28543dd932152268a51fd1639d3a7a1
tree777d254ec8d5710906575d5f0a21f44194b37a88
parent033da5107c6251a7161c620d3ef743b6cc05afe9
Use condition check macro for line coverage

- Issue:
It is tough to cover error handling code through unit test.

- Solution:
Actually, all conditional statement for checking error is invoked, but
the problem is that the code for when error occurs is not invoked. some
error handling codes are covered, but others are not covered only
through unit tests. So this patch changes conditional check code to
macro version. It still works as same as before, but the code is
compressed into one line, so all line is covered.

Change-Id: I268908220eb27258d19661b9907e83bffea008da
Signed-off-by: Suyeon Hwang <stom.hwang@samsung.com>
client/tts.c
client/tts_core.c
client/tts_ipc.c