aboutsummaryrefslogtreecommitdiff
path: root/test-tools/src/main/kotlin/matchers/content
diff options
context:
space:
mode:
authorKamil Doległo <kamilok1965@interia.pl>2020-05-18 17:14:23 +0200
committerPaweł Marks <Kordyjan@users.noreply.github.com>2020-05-19 09:56:32 +0200
commit5451627eb0cf8d95dafd23e96665e062ef023d75 (patch)
tree3406e8930239681c41dadf47f75efd8bf2fde0a2 /test-tools/src/main/kotlin/matchers/content
parentf15ecdd5fadae9169c8b35e0bf8a1786d57563a7 (diff)
downloaddokka-5451627eb0cf8d95dafd23e96665e062ef023d75.tar.gz
dokka-5451627eb0cf8d95dafd23e96665e062ef023d75.tar.bz2
dokka-5451627eb0cf8d95dafd23e96665e062ef023d75.zip
Add test utils for ContentDivergent and fix the tests
Diffstat (limited to 'test-tools/src/main/kotlin/matchers/content')
-rw-r--r--test-tools/src/main/kotlin/matchers/content/ContentMatchersDsl.kt17
1 files changed, 16 insertions, 1 deletions
diff --git a/test-tools/src/main/kotlin/matchers/content/ContentMatchersDsl.kt b/test-tools/src/main/kotlin/matchers/content/ContentMatchersDsl.kt
index 41d73378..01abab28 100644
--- a/test-tools/src/main/kotlin/matchers/content/ContentMatchersDsl.kt
+++ b/test-tools/src/main/kotlin/matchers/content/ContentMatchersDsl.kt
@@ -83,4 +83,19 @@ fun ContentMatcherBuilder<*>.somewhere(block: ContentMatcherBuilder<*>.() -> Uni
skipAllNotMatching()
block()
skipAllNotMatching()
-} \ No newline at end of file
+}
+
+fun ContentMatcherBuilder<*>.divergentGroup(block: ContentMatcherBuilder<ContentDivergentGroup>.() -> Unit) =
+ composite(block)
+
+fun ContentMatcherBuilder<ContentDivergentGroup>.divergentInstance(block: ContentMatcherBuilder<ContentDivergentInstance>.() -> Unit) =
+ composite(block)
+
+fun ContentMatcherBuilder<ContentDivergentInstance>.before(block: ContentMatcherBuilder<ContentComposite>.() -> Unit) =
+ composite(block)
+
+fun ContentMatcherBuilder<ContentDivergentInstance>.divergent(block: ContentMatcherBuilder<ContentComposite>.() -> Unit) =
+ composite(block)
+
+fun ContentMatcherBuilder<ContentDivergentInstance>.after(block: ContentMatcherBuilder<ContentComposite>.() -> Unit) =
+ composite(block) \ No newline at end of file