Summary

[Summary] [Package List] [Test Cases]


Tests Errors Failures Skipped Success Rate Time
91 0 0 0 100% 0.215

Note: failures are anticipated and checked for with assertions while errors are unanticipated.


Package List

[Summary] [Package List] [Test Cases]


Package Tests Errors Failures Skipped Success Rate Time
io.earcam.utilitarian.io 91 0 0 0 100% 0.215

Note: package statistics are not computed recursively, they only sum up all of its testsuites numbers.

io.earcam.utilitarian.io

Class Tests Errors Failures Skipped Success Rate Time
WiretapInputStreamTest 12 0 0 0 100% 0.032
RecursivePathIteratorTest 1 0 0 0 100% 0.036
ByteBufferInputStreamTest 11 0 0 0 100% 0.004
ExplodedJarInputStreamTest 4 0 0 0 100% 0.067
ExplodedJarInputStreamTest$CurrentUndesirableBehaviour 4 0 0 0 100% 0.005
MarkSupportedInputStreamTest 7 0 0 0 100% 0.003
CountedInputStreamTest 12 0 0 0 100% 0.007
ReplaceAllInputStreamTest 7 0 0 0 100% 0.008
SplittableOutputStreamTest 20 0 0 0 100% 0.032
FilteratorTest 6 0 0 0 100% 0.011
IoStreamsTest 3 0 0 0 100% 0.001
ReplaceAllOutputStreamTest 4 0 0 0 100% 0.009

Test Cases

[Summary] [Package List] [Test Cases]

WiretapInputStreamTest

endOfStreamIsHonoured 0.013
readOneByteWhenNotTapped 0.001
constructorArgumentDeterminesTapIsOn 0
readOneByteWhenTapped 0.001
tapsSkippedBytesToEndOfStream 0.001
tappingMayCommenceAfterMarkAndReset 0.001
tapsSkippedBytes 0
bytesSkippedWhenTapOffAreNotStored 0
constructorArgumentDeterminesTapIsOff 0
onlyStoresWhenTapOn 0.001
tapNotAffectedByMarkAndReset 0
underlyingIsClosed 0.001

RecursivePathIteratorTest

deeper 0.03

ByteBufferInputStreamTest

readReturnBytesRead 0
whenSkipLessThanZeroThenZeroSkipped 0
whenDuplicatedThenBufferPositionDoesNotMoveWithStream 0
markIsSupported 0
readsPastEndReturnsMinusOne 0
whenNotDuplicatedThenBufferPositionMovesWithStream 0
skips 0.001
bufferIsReadWithoutOriginalPositionChanging 0
readPastEndReturnsMinusOne 0.001
markSupported 0
whenSkipIsZeroThenZeroSkipped 0

ExplodedJarInputStreamTest

jarInputStreamFromJarFile 0.005
explodedFromFilesystemWithoutManifest 0.019
disgustingTest 0.034
explodedJarThrowsWhenPathIsNotADirectory 0

ExplodedJarInputStreamTest$CurrentUndesirableBehaviour

explodedJarEntrySingleReadMethodIsEffectivelyUseless 0.001
failsAsNormalInputStream 0
failsAsNormalInputStreamWithNothingAvailable 0
availableCanBeInvokedOnTheEntries 0.004

MarkSupportedInputStreamTest

markAndResetWithinLimit 0
ensureMarkSupportedWrapsWhenUnderlyingDoesNotSupportMarking 0
markExceedsLimit 0.001
whenMarkExceedsLimitThenResetThrows 0
ensureMarkSupportedReturnsOriginalWhenOriginalSupportsMarking 0.001
increasingReadLimitMarksWithinReset 0
resetThrowsWhenNotAlreadyMarked 0

CountedInputStreamTest

callingResetSetsCountToZero 0.001
countCorrectWhenMarkedThenMarkReset 0
endOfStreamIsHonoured 0
afterThreeCallsToReadTheCountIsThree 0
countCorrectWhenMarkedThenMarkResetAndCountReset 0.001
byteArrayPopulatedByReadIsEqualToThatFromDelegate 0
requireThatWrappedInputStreamIsNotNull 0.001
afterReadingOneByteThenCountIsOne 0
byteReturnedFromReadIsEqualToThatFromDelegate 0
markSupported 0
whenUninitializedThenTheCountIsZero 0
underlyingIsClosed 0

ReplaceAllInputStreamTest

replaceSingleOccurrenceAtStart 0.001
mutlipleOccurrencesWithShorterReplacementThanSearch 0
falseStartNoOccurrences 0
deleteMutlipleOccurrences 0
replaceSingleOccurrence 0.001
replaceMutlipleOccurrences 0.001
replaceSingleOccurrenceAtEnd 0.001

SplittableOutputStreamTest

cannotWriteByteUnlessStarted 0.001
maxSizeCannotBeNegative 0.001
contentWithOneRecordAndSpaceTo 0.001
sizeOfHeadPlusFootCannotExceedMaxSize 0
contentWithOneRecordFitsMaxSizeExactly 0
maxRecordsCannotBeNegative 0
whenNoRecordsAreWrittenThenSupplierIsNeverCalled 0.001
exampleTwoExactSplits 0.004
regressionEnsureLastRecordWritten 0.001
maxRecordsCannotBeZero 0.001
exampleThreeUnevenSplits 0.001
contentWithTwoRecordsFitsMaxSizeExactly 0.001
contentWithTwoRecordsFitsMaxSizeExactlyIsSplitWhenMaxRecordsCountIsOne 0.001
maxSizeCannotBeZero 0.002
invokingStartWhenAlreadyStartedThrowsIllegalState 0.002
cannotWriteByteArrayUnlessStarted 0.001
whenRecordSizePlusHeadAndFootExceedsMaxSizeThenThrowsBufferOverflow 0.001
givenRecordPartWrittenWhenClosedThenThrowsUnderflow 0.001
invokingEndWhenNotStartedThrowsIllegalState 0
exampleSingleExactSplit 0.001

FilteratorTest

callingNextOnSingleElementIteratorWithoutCheckingHasNext 0
doesNotHaveNextWhenWrappedIteratorIsEmpty 0.001
doesNotHaveNextWhenWrappedIteratorOnlyContainsExclude 0.001
excludeSingleValue 0.004
repeatedCallsToHasNextDoesNotMoveIterator 0
callingNextOnEmptyIteratorThrows 0

IoStreamsTest

writeErrorRethrownAsUnchecked 0.001
readErrorRethrownAsUnchecked 0
transfer 0

ReplaceAllOutputStreamTest

mutlipleOccurrencesWithShorterReplacementThanSearch 0.002
replaceSingleOccurrence 0
whenClosedThenClosesUnderlying 0
replaceConsecutiveOccurrences 0.001

Back to top

Version: 1.2.1. Last Published: 2018-11-25.

Earcam Maven Skin.