aboutsummaryrefslogtreecommitdiff
path: root/testApi/src/main/kotlin/org/jetbrains
diff options
context:
space:
mode:
authorsebastian.sellmair <sebastian.sellmair@jetbrains.com>2020-08-24 14:02:07 +0200
committerPaweł Marks <Kordyjan@users.noreply.github.com>2020-08-25 16:21:32 +0200
commit7196323582dce7ca3f9b07262a1f94ecd8514539 (patch)
tree0c326aee84d4727d5cd5bc5c8198b992d5b58de6 /testApi/src/main/kotlin/org/jetbrains
parent219e2c98f5d03fc8581fd6ce9dd870919523be44 (diff)
downloaddokka-7196323582dce7ca3f9b07262a1f94ecd8514539.tar.gz
dokka-7196323582dce7ca3f9b07262a1f94ecd8514539.tar.bz2
dokka-7196323582dce7ca3f9b07262a1f94ecd8514539.zip
- Move `test` projects into semantic parent projects
- Implement new `:test-utils` project - Resolve requirement for Android SDK installation
Diffstat (limited to 'testApi/src/main/kotlin/org/jetbrains')
-rw-r--r--testApi/src/main/kotlin/org/jetbrains/dokka/testApi/utils/assertIsInstance.kt17
1 files changed, 0 insertions, 17 deletions
diff --git a/testApi/src/main/kotlin/org/jetbrains/dokka/testApi/utils/assertIsInstance.kt b/testApi/src/main/kotlin/org/jetbrains/dokka/testApi/utils/assertIsInstance.kt
deleted file mode 100644
index 00c00ebb..00000000
--- a/testApi/src/main/kotlin/org/jetbrains/dokka/testApi/utils/assertIsInstance.kt
+++ /dev/null
@@ -1,17 +0,0 @@
-package org.jetbrains.dokka.testApi.utils
-
-import kotlin.contracts.ExperimentalContracts
-import kotlin.contracts.contract
-
-@OptIn(ExperimentalContracts::class)
-inline fun <reified T> assertIsInstance(obj: Any?): T {
- contract {
- returns() implies (obj is T)
- }
-
- if (obj is T) {
- return obj
- }
-
- throw AssertionError("Expected instance of type ${T::class.qualifiedName} but found $obj")
-}