Coveralls logob
Coveralls logo
  • Home
  • Features
  • Pricing
  • Docs
  • Sign In

bovigo / vfsStream / 364
94%
master: 95%

DEFAULT BRANCH: master
Build:
LAST BUILD BRANCH: dependabot/github_actions/actions/cache-3.0.1
Repo Added 08 Apr 2019 01:17PM UTC
Total Files 21
# Builds 304 Last
Badge
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 - 16:07 First build on bugfix/issue_216 at 94.476%
364

push

travis-ci

Cdfa430b610b867fa3cbcaddcec76f0b?size=18&default=identiconmikey179
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

Jobs
Coverage Job Files Covered Ran
94.48
364.15 (DEPENDENCIES=default) 21 19 Feb 2020 04:16PM UTC Travis Job 364.15
Source Files on build 364
  • Tree
  • List 21
  • Changed 0
  • Source Changed 0
  • Coverage Changed 0
Coverage ∆ File Lines Relevant Covered Missed Hits/Line
  • Back to Repo
  • Travis Build #364
  • 343986c8 on github
  • Next Build on bugfix/issue_216 (#206)
Troubleshooting · Open an Issue · Sales · Support · ENTERPRISE · CAREERS · STATUS
BLOG · TWITTER · Legal & Privacy · Supported CI Services · What's a CI service? · Automated Testing

© 2022 Coveralls, Inc