Branch Coverage

DS3231.xs
Criterion Covered Total %
branch 0 76 0.0


line true false branch
46 0 0 if (value < 0 || value > 59){
0 0 if (value < 0 || value > 59){
57 0 0 if (value < 0 || value > 59){
0 0 if (value < 0 || value > 59){
67 0 0 if ((getRegisterBit(fd, RTC_HOUR, RTC_12_24)) == 0){
80 0 0 if ((getRegisterBit(fd, RTC_HOUR, RTC_12_24)) != 0){
83 0 0 if (value > 12 || value < 1){
0 0 if (value > 12 || value < 1){
95 0 0 if (value > 23 || value < 0){
0 0 if (value > 23 || value < 0){
114 0 0 if (value > 7 || value < 1){
0 0 if (value > 7 || value < 1){
127 0 0 if (value < 1 || value > 31){
0 0 if (value < 1 || value > 31){
143 0 0 if (value < 1 || value > 12){
0 0 if (value < 1 || value > 12){
156 0 0 if (value < 2000 || value > 2099){
0 0 if (value < 2000 || value > 2099){
177 0 0 if ((getRegisterBit(fd, RTC_HOUR, RTC_12_24)) == 0){
187 0 0 if ((getRegisterBit(fd, RTC_HOUR, RTC_12_24)) == 0){
193 0 0 if (value == 1){
196 0 0 else if (value == 0){
216 0 0 if (militaryTime == value){
221 0 0 if (value == 1){
223 0 0 if (hour == 0){
228 0 0 else if (getHour(fd) <= 12){
246 0 0 if (meridien == 0){
248 0 0 if (hour == 12){
257 0 0 if (hour < 12){
271 0 0 if ((fd = open("/dev/i2c-1", O_RDWR)) < 0) {
276 0 0 if (ioctl(fd, I2C_SLAVE_FORCE, rtcAddr) < 0) {
305 0 0 if ((write(fd, buf, 1)) != 1){
314 0 0 if ((read(fd, buf, 1)) != 1){
339 0 0 if ((write(fd, buf, sizeof(buf))) != 2){
363 0 0 if ((write(fd, buf, sizeof(buf))) != 2){
386 0 0 if (write(fd, buf, 1) != 1){
494 0 0 if (PL_markstack_ptr != temp) {
510 0 0 if (PL_markstack_ptr != temp) {