//tempest-testing-internal/app.cash.tempest.testing.internal
Package-level declarations¶
Types¶
Name | Summary |
---|---|
DefaultTestDynamoDbClient | [jvm] class DefaultTestDynamoDbClient(val tables: List<TestTable>, port: Int) : AbstractIdleService, TestDynamoDbClient |
Tag | [jvm] typealias Tag = Pair<String, Any?> |
TestDynamoDbService | [jvm] class TestDynamoDbService : AbstractIdleService This Guava service spins up a DynamoDB server in tests. It shares the server across tests and keeps the server running until the process exits. |
Functions¶
Name | Summary |
---|---|
allocateRandomPort | [jvm] fun allocateRandomPort(): ServerSocket |
buildDynamoDb | [jvm] fun buildDynamoDb(host: String, port: Int): AmazonDynamoDB |
buildDynamoDbStreams | [jvm] fun buildDynamoDbStreams(host: String, port: Int): AmazonDynamoDBStreams |
createTable | [jvm] fun AmazonDynamoDB.createTable(table: TestTable) |
debug | [jvm] fun KLogger.debug(vararg tags: Tag, message: () -> Any?) fun KLogger.debug(th: Throwable, vararg tags: Tag, message: () -> Any?) |
error | [jvm] fun KLogger.error(vararg tags: Tag, message: () -> Any?) fun KLogger.error(th: Throwable, vararg tags: Tag, message: () -> Any?) |
getLogger | [jvm] inline fun <T> getLogger(): KLogger |
hostName | [jvm] fun hostName(port: Int): String |
info | [jvm] fun KLogger.info(vararg tags: Tag, message: () -> Any?) fun KLogger.info(th: Throwable, vararg tags: Tag, message: () -> Any?) |
isServerListening | [jvm] fun isServerListening(host: String, port: Int): Boolean |
log | [jvm] fun KLogger.log(level: Level, vararg tags: Tag, message: () -> Any?) fun KLogger.log(level: Level, th: Throwable, vararg tags: Tag, message: () -> Any?) |
pickRandomPort | [jvm] fun pickRandomPort(): Int |
warn | [jvm] fun KLogger.warn(vararg tags: Tag, message: () -> Any?) fun KLogger.warn(th: Throwable, vararg tags: Tag, message: () -> Any?) |