Package-level declarations

Types

Link copied to clipboard
expect abstract class ClientLoader(timeoutSeconds: Int = 60)

Helper interface to test client.

actual abstract class ClientLoader(timeoutSeconds: Int)

Helper interface to test client.

actual abstract class ClientLoader(val timeoutSeconds: Int)

Helper interface to test client.

actual abstract class ClientLoader(timeoutSeconds: Int)

Helper interface to test client.

actual abstract class ClientLoader(timeoutSeconds: Int)

Helper interface to test client.

Link copied to clipboard
class TestClientBuilder<out T : HttpClientEngineConfig>(var config: HttpClientConfig<@UnsafeVariance T>.() -> Unit = {}, var test: suspend TestInfo.(client: HttpClient) -> Unit = {}, var after: suspend (client: HttpClient) -> Unit = {}, var repeatCount: Int = 1, var dumpAfterDelay: Long = -1, var concurrency: Int = 1)
Link copied to clipboard
class TestInfo(val threadId: Int, val attempt: Int)
Link copied to clipboard
@CoroutinesTimeout(testTimeoutMs = 300000)
abstract class TestWithKtor

Properties

Link copied to clipboard
const val TCP_SERVER: String

Proxy server url for tests.

Link copied to clipboard
const val TEST_SERVER: String

Web url for tests.

Link copied to clipboard

Websocket server url for tests.

Functions

Link copied to clipboard
fun TestClientBuilder<*>.after(block: suspend (client: HttpClient) -> Unit)
Link copied to clipboard
Link copied to clipboard
fun makeArray(size: Int): ByteArray
Link copied to clipboard
fun makeString(size: Int): String
Link copied to clipboard
suspend fun List<PartData>.makeString(): String
Link copied to clipboard
fun TestClientBuilder<*>.test(block: suspend TestInfo.(client: HttpClient) -> Unit)
Link copied to clipboard
fun testWithEngine(engine: HttpClientEngine, timeoutMillis: Long = 60 * 1000L, retries: Int = 1, block: suspend TestClientBuilder<*>.() -> Unit): TestResult

Perform test with selected client engine.

fun <T : HttpClientEngineConfig> testWithEngine(factory: HttpClientEngineFactory<T>, loader: ClientLoader? = null, timeoutMillis: Long = 60L * 1000L, retries: Int = 1, block: suspend TestClientBuilder<T>.() -> Unit): TestResult

Perform test with selected client engine factory.