• Home
  • Features
  • Pricing
  • Docs
  • Announcements
  • Sign In

bovigo / vfsStream / 364 / 15
94%
master: 95%

Build:
Build:
LAST BUILD BRANCH: dependabot/github_actions/actions/cache-3.0.1
DEFAULT BRANCH: master
Ran 19 Feb 2020 04:17PM UTC
Files 21
Run time 2s
Badge
Embed ▾
README BADGES
x

If you need to use a raster PNG badge, change the '.svg' to '.png' in the link

Markdown

Textile

RDoc

HTML

Rst

19 Feb 2020 04:07PM UTC coverage: 94.476%. First build
DEPENDENCIES=default

push

travis-ci

mikey179
limit maximum amount of bytes to read, fixes #216

The result of rand() can be numbers of up to 2147483647 (PHP 7.3.14 on macOS). Before the actual file read PHP allocates the amount of memory specified by the second argument to fread() to ensure everything fits into memory. For unit tests that's bad, as it can mean of allocating 2 GB of memory.

Therefore this fix limits the amount to 10000. For typical vfsStream usages that's more than sufficient. The usage of rand() is kept to verify that the functionality tested works independent of the amount of bytes to be read from the file.

838 of 887 relevant lines covered (94.48%)

63.62 hits per line

Source Files on job 364.15 (DEPENDENCIES=default)
  • Tree
  • List 0
  • Changed 0
  • Source Changed 0
  • Coverage Changed 0
Coverage ∆ File Lines Relevant Covered Missed Hits/Line
  • Back to Build 204
  • Travis Job 364.15
  • 343986c8 on github
  • Next Job for DEPENDENCIES=default on bugfix/issue_216 (#366.15)
STATUS · Troubleshooting · Open an Issue · Sales · Support · CAREERS · ENTERPRISE · START FREE · SCHEDULE DEMO
ANNOUNCEMENTS · TWITTER · TOS & SLA · Supported CI Services · What's a CI service? · Automated Testing

© 2026 Coveralls, Inc