aboutsummaryrefslogtreecommitdiff
path: root/test
diff options
context:
space:
mode:
Diffstat (limited to 'test')
-rw-r--r--test/src/TestAPI.kt3
1 files changed, 3 insertions, 0 deletions
diff --git a/test/src/TestAPI.kt b/test/src/TestAPI.kt
index 79b5ba77..33cf4908 100644
--- a/test/src/TestAPI.kt
+++ b/test/src/TestAPI.kt
@@ -62,6 +62,9 @@ public fun verifyModel(source: String,
withKotlinRuntime: Boolean = false,
format: String = "html",
verifier: (DocumentationModule) -> Unit) {
+ if (!File(source).exists()) {
+ throw IllegalArgumentException("Can't find test data file $source")
+ }
verifyModel(contentRootFromPath(source),
withJdk = withJdk,
withKotlinRuntime = withKotlinRuntime,