1 import org.junit.*
2 import kotlinx.coroutines.*
3 import kotlinx.coroutines.debug.internal.*
4 import org.junit.Test
5 import java.io.*
6 
7 class CoreAgentTest {
8 
9     @Test
<lambda>null10     fun testAgentDumpsCoroutines() = runBlocking {
11         val baos = ByteArrayOutputStream()
12         @Suppress("INVISIBLE_MEMBER", "INVISIBLE_REFERENCE")
13         DebugProbesImpl.dumpCoroutines(PrintStream(baos))
14         // if the agent works, then dumps should contain something,
15         // at least the fact that this test is running.
16         Assert.assertTrue(baos.toString().contains("testAgentDumpsCoroutines"))
17     }
18 
19 }
20