You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: core/kotlinx-coroutines-io/src/main/kotlin/kotlinx/coroutines/experimental/io/packet/ByteWritePacketImpl.kt
+2Lines changed: 2 additions & 0 deletions
Original file line number
Diff line number
Diff line change
@@ -88,10 +88,12 @@ internal class ByteWritePacketImpl(private val pool: ObjectPool<ByteBuffer>) : B
Copy file name to clipboardExpand all lines: core/kotlinx-coroutines-io/src/test/kotlin/kotlinx/coroutines/experimental/io/BytePacketReaderWriterTest.kt
+8Lines changed: 8 additions & 0 deletions
Original file line number
Diff line number
Diff line change
@@ -314,7 +314,9 @@ class BytePacketReaderWriterTest {
314
314
315
315
val outer = buildPacket {
316
316
append("123")
317
+
assertEquals(3, size)
317
318
writePacket(inner)
319
+
assertEquals(6, size)
318
320
append(".")
319
321
}
320
322
@@ -330,7 +332,9 @@ class BytePacketReaderWriterTest {
330
332
331
333
val outer = buildPacket {
332
334
append("123")
335
+
assertEquals(3, size)
333
336
writePacket(inner)
337
+
assertEquals(100003, size)
334
338
append(".")
335
339
}
336
340
@@ -346,7 +350,9 @@ class BytePacketReaderWriterTest {
346
350
347
351
val outer = buildPacket {
348
352
append("123")
353
+
assertEquals(3, size)
349
354
writePacketUnconsumed(inner)
355
+
assertEquals(6, size)
350
356
append(".")
351
357
}
352
358
@@ -362,7 +368,9 @@ class BytePacketReaderWriterTest {
0 commit comments