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

bovigo / vfsStream / 365
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:13 coverage remained the same at 94.476%
365

Pull #217

travis-ci

9181eb84f9c35729a3bad740fb7f9d93?size=18&default=identiconweb-flow
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.
Pull Request #217: Limit maximum amount of bytes to read, fixes #216

838 of 887 relevant lines covered (94.48%)

63.62 hits per line

Jobs
Coverage Job Files Covered Ran
94.48
365.15 (DEPENDENCIES=default) 21 19 Feb 2020 04:19PM UTC Travis Job 365.15
Source Files on build 365
  • Tree
  • List 21
  • Changed 0
  • Source Changed 0
  • Coverage Changed 0
Coverage ∆ File Lines Relevant Covered Missed Hits/Line
  • Back to Repo
  • Travis Build #365
  • Pull Request #217
  • PR Base - master (#200)
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