Skip to content

Commit 3b9a9ff

Browse files
committed
change that will create a test gap
1 parent a5fecfb commit 3b9a9ff

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

src/main/kotlin/assertk/assertions/inputstream.kt

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -48,7 +48,7 @@ private fun consume(stream: InputStream): Int {
4848
}
4949
}
5050

51-
private fun fillBufferFromStream(stream: InputStream, buffer: ByteArray): Int {
51+
private fun fillBuffer(stream: InputStream, buffer: ByteArray): Int {
5252
var pos = 0
5353

5454
while (true) {
@@ -71,7 +71,7 @@ private fun doTheStreamHaveTheSameContent(actual: InputStream, expected: InputSt
7171
var size = 0L
7272

7373
val actualBuffer = ByteArray(BUFFER_SIZE)
74-
val otherBuffer = ByteArray(BUFFER_SIZE)
74+
val someOtherBuffer = ByteArray(BUFFER_SIZE)
7575

7676
while (true) {
7777
val actualRead = fillBuffer(actual, actualBuffer)
@@ -134,6 +134,8 @@ private fun doTheStreamHaveTheSameContent(actual: InputStream, expected: InputSt
134134
throw IllegalStateException("unreachable code")
135135
}
136136

137+
private fun constFunction(): String = "Const Value"
138+
137139
private inline fun <R> use(a: Closeable, b: Closeable, f: () -> R): R {
138140
return a.use { b.use { f() } }
139141
}

0 commit comments

Comments
 (0)