Branch Coverage

time64.c
Criterion Covered Total %
branch 77 216 35.6


line true false branch
126 0 7 int is_exception = ((year % 100 == 0) && !(year % 400 == 0));
0 0 int is_exception = ((year % 100 == 0) && !(year % 400 == 0));
0 7 int is_exception = ((year % 100 == 0) && !(year % 400 == 0));
0 0 int is_exception = ((year % 100 == 0) && !(year % 400 == 0));
0 0 int is_exception = ((year % 100 == 0) && !(year % 400 == 0));
0 0 int is_exception = ((year % 100 == 0) && !(year % 400 == 0));
0 0 int is_exception = ((year % 100 == 0) && !(year % 400 == 0));
0 0 int is_exception = ((year % 100 == 0) && !(year % 400 == 0));
138 7 0 if( date->tm_year > 70 ) {
140 337 7 while( year < date->tm_year ) {
141 330 7 days += length_of_year[IS_LEAP(year)];
77 253 days += length_of_year[IS_LEAP(year)];
0 77 days += length_of_year[IS_LEAP(year)];
145 0 0 else if ( date->tm_year < 70 ) {
148 0 0 days -= length_of_year[IS_LEAP(year)];
0 0 days -= length_of_year[IS_LEAP(year)];
0 0 days -= length_of_year[IS_LEAP(year)];
150 0 0 } while( year >= date->tm_year );
153 7 0 days += julian_days_by_month[IS_LEAP(date->tm_year)][date->tm_mon];
0 7 days += julian_days_by_month[IS_LEAP(date->tm_year)][date->tm_mon];
0 0 days += julian_days_by_month[IS_LEAP(date->tm_year)][date->tm_mon];
212 0 7 if( year > start_year )
0 0 if( year > start_year )
247 0 7 if( S_is_exception_century(year) )
0 0 if( S_is_exception_century(year) )
251 0 7 if( S_is_exception_century(year - 1) )
0 0 if( S_is_exception_century(year - 1) )
255 7 0 if( year_cycle < 0 )
0 0 if( year_cycle < 0 )
310 0 1182 if( static_result == NULL ) {
374 279 30 time = time >= 0 ? floor(time / 60.0) : ceil(time / 60.0);
0 0 time = time >= 0 ? floor(time / 60.0) : ceil(time / 60.0);
376 283 26 time = time >= 0 ? floor(time / 60.0) : ceil(time / 60.0);
0 0 time = time >= 0 ? floor(time / 60.0) : ceil(time / 60.0);
378 283 26 time = time >= 0 ? floor(time / 24.0) : ceil(time / 24.0);
0 0 time = time >= 0 ? floor(time / 24.0) : ceil(time / 24.0);
381 30 279 WRAP (v_tm_sec, v_tm_min, 60);
0 0 WRAP (v_tm_sec, v_tm_min, 60);
382 30 279 WRAP (v_tm_min, v_tm_hour, 60);
0 0 WRAP (v_tm_min, v_tm_hour, 60);
383 30 279 WRAP (v_tm_hour, v_tm_tday, 24);
0 0 WRAP (v_tm_hour, v_tm_tday, 24);
386 19 290 if (v_tm_wday < 0)
0 0 if (v_tm_wday < 0)
390 219 90 if (m >= CHEAT_DAYS) {
0 0 if (m >= CHEAT_DAYS) {
395 279 30 if (m >= 0) {
0 0 if (m >= 0) {
398 10 269 if( cycles ) {
0 0 if( cycles ) {
404 279 0 leap = IS_LEAP (year);
219 60 leap = IS_LEAP (year);
0 219 leap = IS_LEAP (year);
0 0 leap = IS_LEAP (year);
0 0 leap = IS_LEAP (year);
0 0 leap = IS_LEAP (year);
405 5044 279 while (m >= (Time64_T) length_of_year[leap]) {
0 0 while (m >= (Time64_T) length_of_year[leap]) {
408 5027 17 leap = IS_LEAP (year);
1192 3835 leap = IS_LEAP (year);
26 1166 leap = IS_LEAP (year);
0 0 leap = IS_LEAP (year);
0 0 leap = IS_LEAP (year);
0 0 leap = IS_LEAP (year);
413 1718 279 while (m >= (Time64_T) days_in_month[leap][v_tm_mon]) {
0 0 while (m >= (Time64_T) days_in_month[leap][v_tm_mon]) {
422 30 0 if( cycles ) {
0 0 if( cycles ) {
428 30 0 leap = IS_LEAP (year);
0 0 leap = IS_LEAP (year);
429 18123 30 while (m < (Time64_T) -length_of_year[leap]) {
0 0 while (m < (Time64_T) -length_of_year[leap]) {
432 18091 32 leap = IS_LEAP (year);
4503 13588 leap = IS_LEAP (year);
144 4359 leap = IS_LEAP (year);
0 0 leap = IS_LEAP (year);
0 0 leap = IS_LEAP (year);
0 0 leap = IS_LEAP (year);
437 144 30 while (m < (Time64_T) -days_in_month[leap][v_tm_mon]) {
0 0 while (m < (Time64_T) -days_in_month[leap][v_tm_mon]) {
445 0 309 if( p->tm_year != year ) {
0 0 if( p->tm_year != year ) {
478 1182 0 if( SHOULD_USE_SYSTEM_LOCALTIME(*time) ) {
1175 7 if( SHOULD_USE_SYSTEM_LOCALTIME(*time) ) {
0 0 if( SHOULD_USE_SYSTEM_LOCALTIME(*time) ) {
0 0 if( SHOULD_USE_SYSTEM_LOCALTIME(*time) ) {
491 7 0 if( S_gmtime64_r(time, &gm_tm) == NULL ) {
0 0 if( S_gmtime64_r(time, &gm_tm) == NULL ) {
498 7 0 if (gm_tm.tm_year > (2037 - 1900) ||
0 0 if (gm_tm.tm_year > (2037 - 1900) ||
507 7 0 if( LOCALTIME_R(&safe_time, &safe_date) == NULL ) {
0 0 if( LOCALTIME_R(&safe_time, &safe_date) == NULL ) {
515 0 7 if( local_tm->tm_year != orig_year ) {
0 0 if( local_tm->tm_year != orig_year ) {
531 0 7 if( month_diff == 11 ) {
0 0 if( month_diff == 11 ) {
538 0 7 if( month_diff == -11 ) {
0 0 if( month_diff == -11 ) {
548 7 0 if( !IS_LEAP(local_tm->tm_year) && local_tm->tm_yday == 365 )
0 7 if( !IS_LEAP(local_tm->tm_year) && local_tm->tm_yday == 365 )
0 0 if( !IS_LEAP(local_tm->tm_year) && local_tm->tm_yday == 365 )
7 0 if( !IS_LEAP(local_tm->tm_year) && local_tm->tm_yday == 365 )
0 7 if( !IS_LEAP(local_tm->tm_year) && local_tm->tm_yday == 365 )
0 0 if( !IS_LEAP(local_tm->tm_year) && local_tm->tm_yday == 365 )
0 0 if( !IS_LEAP(local_tm->tm_year) && local_tm->tm_yday == 365 )
0 0 if( !IS_LEAP(local_tm->tm_year) && local_tm->tm_yday == 365 )
0 0 if( !IS_LEAP(local_tm->tm_year) && local_tm->tm_yday == 365 )
0 0 if( !IS_LEAP(local_tm->tm_year) && local_tm->tm_yday == 365 )