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

ancarda / psr7-string-stream
100%
master: 100%

Build:
Build:
LAST BUILD BRANCH: 1.3
DEFAULT BRANCH: master
Repo Added 25 Aug 2019 02:12PM UTC
Files 4
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

LAST BUILD ON BRANCH 1.3
branch: 1.3
CHANGE BRANCH
x
Reset
  • 1.3
  • 1.1
  • 1.2
  • master

pending completion
10

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

Relevant lines Covered
Build:
Build:
70 RELEVANT LINES 70 COVERED LINES
10.37 HITS PER LINE
Source Files on 1.3
  • List 0
  • Changed 0
  • Source Changed 0
  • Coverage Changed 0
Coverage ∆ File Lines Relevant Covered Missed Hits/Line

Recent builds

Builds Branch Commit Type Ran Committer Via Coverage
10 1.3 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 in... push 31 Aug 2019 07:34PM UTC ancarda travis-ci-com pending completion  
See All Builds (10)
  • Repo on GitHub
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