OpenCoverage

freadahead.c

Absolute File Name:/home/opencoverage/opencoverage/guest-scripts/coreutils/src/gnulib/lib/freadahead.c
Switch to Source codePreprocessed file
LineSourceCount
1-
2-
3-
4-
5-
6-
7-
8-
9-
10-
11size_t-
12freadahead (FILE *fp)-
13{-
14-
15 if (fp->_IO_write_ptr > fp->_IO_write_base
fp->_IO_write_..._IO_write_baseDescription
TRUEnever evaluated
FALSEevaluated 3074 times by 6 tests
Evaluated by:
  • cp
  • cut
  • ginstall
  • ln
  • mv
  • rm
)
0-3074
16 return
never executed: return 0;
0;
never executed: return 0;
0
17 return
executed 3074 times by 6 tests: return (fp->_IO_read_end - fp->_IO_read_ptr) + (fp->_flags & 0x100 ? fp->_IO_save_end - fp->_IO_save_base : 0);
Executed by:
  • cp
  • cut
  • ginstall
  • ln
  • mv
  • rm
(fp->_IO_read_end - fp->_IO_read_ptr)
executed 3074 times by 6 tests: return (fp->_IO_read_end - fp->_IO_read_ptr) + (fp->_flags & 0x100 ? fp->_IO_save_end - fp->_IO_save_base : 0);
Executed by:
  • cp
  • cut
  • ginstall
  • ln
  • mv
  • rm
3074
18 + (fp->_flags &
executed 3074 times by 6 tests: return (fp->_IO_read_end - fp->_IO_read_ptr) + (fp->_flags & 0x100 ? fp->_IO_save_end - fp->_IO_save_base : 0);
Executed by:
  • cp
  • cut
  • ginstall
  • ln
  • mv
  • rm
3074
19 0x100
executed 3074 times by 6 tests: return (fp->_IO_read_end - fp->_IO_read_ptr) + (fp->_flags & 0x100 ? fp->_IO_save_end - fp->_IO_save_base : 0);
Executed by:
  • cp
  • cut
  • ginstall
  • ln
  • mv
  • rm
3074
20 ? fp->_IO_save_end - fp->_IO_save_base :
executed 3074 times by 6 tests: return (fp->_IO_read_end - fp->_IO_read_ptr) + (fp->_flags & 0x100 ? fp->_IO_save_end - fp->_IO_save_base : 0);
Executed by:
  • cp
  • cut
  • ginstall
  • ln
  • mv
  • rm
3074
21 0);
executed 3074 times by 6 tests: return (fp->_IO_read_end - fp->_IO_read_ptr) + (fp->_flags & 0x100 ? fp->_IO_save_end - fp->_IO_save_base : 0);
Executed by:
  • cp
  • cut
  • ginstall
  • ln
  • mv
  • rm
3074
22}-
Switch to Source codePreprocessed file

Generated by Squish Coco 4.1.2