OpenCoverage

stripslash.c

Absolute File Name:/home/opencoverage/opencoverage/guest-scripts/coreutils/src/gnulib/lib/stripslash.c
Switch to Source codePreprocessed file
LineSourceCount
1-
2-
3_Bool-
4-
5strip_trailing_slashes (char *file)-
6{-
7 char *base = last_component (file);-
8 char *base_lim;-
9 -
10 _Bool -
11 had_slash;-
12-
13-
14-
15 if (! *base
! *baseDescription
TRUEevaluated 6 times by 1 test
Evaluated by:
  • basename
FALSEevaluated 4066 times by 5 tests
Evaluated by:
  • basename
  • cp
  • ln
  • mv
  • rmdir
)
6-4066
16 base = file;
executed 6 times by 1 test: base = file;
Executed by:
  • basename
6
17 base_lim = base + base_len (base);-
18 had_slash = (*base_lim != '\0');-
19 *base_lim = '\0';-
20 return
executed 4072 times by 5 tests: return had_slash;
Executed by:
  • basename
  • cp
  • ln
  • mv
  • rmdir
had_slash;
executed 4072 times by 5 tests: return had_slash;
Executed by:
  • basename
  • cp
  • ln
  • mv
  • rmdir
4072
21}-
Switch to Source codePreprocessed file

Generated by Squish Coco 4.1.2