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

ancarda / psr7-string-stream / 9
100%

Build:
DEFAULT BRANCH: master
Ran 31 Aug 2019 07:32PM UTC
Jobs 3
Files 4
Run time 17s
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

pending completion
9

push

travis-ci-com

ancarda
Throw StreamUnusableException after close/detach

This commit adjusts the behavior of close and detach to set the body
to null rather than an empty string. All methods that support throwing
an exception will now throw StreamUnusableException to indicate the
stream has been closed and is thus unusable.

The methods that do not have "@throws RuntimeException" in their
docblocks usually return the zero value of their type. The sole
exception is the eof (End of File) function, since both true and false
is wrong; there's no stream to be at the end of. In this case, true is
returned because that's how the existing implementation works; pointer
is at payload length.

StreamUnusableException is a kind of IllegalOperationException, a new
exception that tells upstream callers which function call failed and
why. ReadOnlyStringStream now throws IllegalOperationException when a
user calls the write() method.

Closes #1

70 of 70 relevant lines covered (100.0%)

10.37 hits per line

Jobs
ID Job ID Ran Files Coverage
1 9.1 31 Aug 2019 07:32PM UTC 0
100.0
Travis Job 9.1
2 9.2 31 Aug 2019 07:32PM UTC 0
100.0
Travis Job 9.2
3 9.3 31 Aug 2019 07:33PM UTC 0
100.0
Travis Job 9.3
Source Files on build 9
  • Tree
  • List 0
  • Changed 2
  • Source Changed 2
  • Coverage Changed 1
Coverage ∆ File Lines Relevant Covered Missed Hits/Line
  • Back to Repo
  • Build #9
  • 613485cf on github
  • Prev Build on master (#7)
  • Next Build on master (#11)
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

© 2025 Coveralls, Inc