From 50a3323322265ff3b5dab1d861a25bbb1167812a Mon Sep 17 00:00:00 2001 From: Ignat Beresnev Date: Thu, 18 Aug 2022 19:33:53 +0200 Subject: Add deprecation details block (#2622) --- .../src/main/kotlin/matchers/content/ContentMatchersDsl.kt | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) (limited to 'core/content-matcher-test-utils/src') diff --git a/core/content-matcher-test-utils/src/main/kotlin/matchers/content/ContentMatchersDsl.kt b/core/content-matcher-test-utils/src/main/kotlin/matchers/content/ContentMatchersDsl.kt index 264be933..08442536 100644 --- a/core/content-matcher-test-utils/src/main/kotlin/matchers/content/ContentMatchersDsl.kt +++ b/core/content-matcher-test-utils/src/main/kotlin/matchers/content/ContentMatchersDsl.kt @@ -91,6 +91,10 @@ fun ContentMatcherBuilder<*>.platformHinted(block: ContentMatcherBuilder.list(block: ContentMatcherBuilder.() -> Unit) = composite(block) +fun ContentMatcherBuilder<*>.codeBlock(block: ContentMatcherBuilder.() -> Unit) = composite(block) + +fun ContentMatcherBuilder<*>.codeInline(block: ContentMatcherBuilder.() -> Unit) = composite(block) + fun ContentMatcherBuilder<*>.caption(block: ContentMatcherBuilder.() -> Unit) = composite { block() check { assertThat(this::style).contains(ContentStyle.Caption) } @@ -117,4 +121,4 @@ fun ContentMatcherBuilder.divergent(block: ContentMatc composite(block) fun ContentMatcherBuilder.after(block: ContentMatcherBuilder.() -> Unit) = - composite(block) \ No newline at end of file + composite(block) -- cgit