Skip to content

Commit 58bc948

Browse files
committed
Increase deprecation level of declarations deprecated in Mokkery 3.0.0 to error
1 parent 2e4a91a commit 58bc948

10 files changed

Lines changed: 100 additions & 67 deletions

File tree

mokkery-runtime/src/commonMain/kotlin/dev/mokkery/matcher/ArgMatcher.kt

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -95,7 +95,7 @@ public fun interface ArgMatcher<in T> {
9595
* **DEPRECATED: This API is obsolete and will be removed!**
9696
*/
9797
@Poko
98-
@Deprecated("This API is obsolete and will be removed!")
98+
@Deprecated("This API is obsolete and will be removed!", level = DeprecationLevel.ERROR)
9999
public class NotEqual<T>(public val value: T) : ArgMatcher<T> {
100100

101101
override fun matches(arg: T): Boolean = arg != value
@@ -107,7 +107,7 @@ public fun interface ArgMatcher<in T> {
107107
* Matches an argument whose reference is not equal to [value]'s reference.
108108
* **DEPRECATED: This API is obsolete and will be removed!**
109109
*/
110-
@Deprecated("This API is obsolete and will be removed!")
110+
@Deprecated("This API is obsolete and will be removed!", level = DeprecationLevel.ERROR)
111111
public class NotEqualRef<T>(public val value: T) : ArgMatcher<T> {
112112

113113
override fun matches(arg: T): Boolean = arg !== value
@@ -121,7 +121,7 @@ public fun interface ArgMatcher<in T> {
121121
* **DEPRECATED: This API is considered obsolete. Implement `ArgMatcher` instead.**
122122
*/
123123
@Poko
124-
@Deprecated("This API is considered obsolete. Implement `ArgMatcher` instead.")
124+
@Deprecated("This API is considered obsolete. Implement `ArgMatcher` instead.", level = DeprecationLevel.ERROR)
125125
public class Matching<T>(
126126
public val predicate: (T) -> Boolean,
127127
public val toStringFun: (() -> String)

mokkery-runtime/src/commonMain/kotlin/dev/mokkery/matcher/MokkeryMatcherScope.kt

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,8 @@ public interface MokkeryMatcherScope : MokkeryScope
1313
* **DEPRECATED: It was renamed to `MokkeryMatcherScope`**
1414
*/
1515
@Deprecated(
16-
"Renamed to MokkeryMatcherScope",
17-
replaceWith = ReplaceWith("MokkeryMatcherScope", "dev.mokkery.matcher.MokkeryMatcherScope")
16+
message = "Renamed to MokkeryMatcherScope",
17+
replaceWith = ReplaceWith("MokkeryMatcherScope", "dev.mokkery.matcher.MokkeryMatcherScope"),
18+
level = DeprecationLevel.ERROR,
1819
)
1920
public typealias ArgMatchersScope = MokkeryMatcherScope

mokkery-runtime/src/commonMain/kotlin/dev/mokkery/matcher/MokkeryMatcherScopeApi.kt

Lines changed: 11 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -112,7 +112,8 @@ public inline fun <reified T> MokkeryMatcherScope.ofType(): T = matches(ArgMatch
112112
*/
113113
@Deprecated(
114114
"This API is considered obsolete. Literals can be used in all contexts now, so this matcher usage can be omitted.",
115-
ReplaceWith("value")
115+
ReplaceWith("value"),
116+
DeprecationLevel.ERROR
116117
)
117118
public fun <T> MokkeryMatcherScope.eq(value: T): T = matches(ArgMatcher.Equals(value))
118119

@@ -121,7 +122,8 @@ public fun <T> MokkeryMatcherScope.eq(value: T): T = matches(ArgMatcher.Equals(v
121122
*/
122123
@Deprecated(
123124
"This API is considered obsolete. `not` matcher should be used instead as it's more flexible - allows using matchers.",
124-
ReplaceWith("not(value)", "dev.mokkery.matcher.logical.not")
125+
ReplaceWith("not(value)", "dev.mokkery.matcher.logical.not"),
126+
DeprecationLevel.ERROR
125127
)
126128
public fun <T> MokkeryMatcherScope.neq(value: T): T = not(value)
127129

@@ -130,7 +132,8 @@ public fun <T> MokkeryMatcherScope.neq(value: T): T = not(value)
130132
*/
131133
@Deprecated(
132134
"Renamed to `ref`",
133-
ReplaceWith("ref(value)", "dev.mokkery.matcher.ref")
135+
ReplaceWith("ref(value)", "dev.mokkery.matcher.ref"),
136+
DeprecationLevel.ERROR
134137
)
135138
public fun <T> MokkeryMatcherScope.eqRef(value: T): T = ref(value)
136139

@@ -139,22 +142,23 @@ public fun <T> MokkeryMatcherScope.eqRef(value: T): T = ref(value)
139142
*/
140143
@Deprecated(
141144
"This API is considered obsolete. Use `not(ref(...)).`",
142-
ReplaceWith("not(ref(value))", "dev.mokkery.matcher.ref", "dev.mokkery.matcher.logical.not")
145+
ReplaceWith("not(ref(value))", "dev.mokkery.matcher.ref", "dev.mokkery.matcher.logical.not"),
146+
DeprecationLevel.ERROR
143147
)
144148
public fun <T> MokkeryMatcherScope.neqRef(value: T): T = not(ref(value))
145149

146150
/**
147151
* **DEPRECATED: This API is considered obsolete. Use [matches] instead.**
148152
*/
149-
@Deprecated("This API is considered obsolete. Use `matches` instead.", ReplaceWith("matches(predicate)", "dev.mokkery.matcher.matches"))
153+
@Deprecated("This API is considered obsolete. Use `matches` instead.", ReplaceWith("matches(predicate)", "dev.mokkery.matcher.matches"), DeprecationLevel.ERROR)
150154
public fun <T> MokkeryMatcherScope.matching(
151155
predicate: (T) -> Boolean,
152156
): T = matches({ "matching(...)" }, predicate)
153157

154158
/**
155159
* **DEPRECATED: This API is considered obsolete. Use [matches] instead.**
156160
*/
157-
@Deprecated("This API is considered obsolete. Use `matches` instead.", ReplaceWith("matches(toString, predicate)", "dev.mokkery.matcher.matches"))
161+
@Deprecated("This API is considered obsolete. Use `matches` instead.", ReplaceWith("matches(toString, predicate)", "dev.mokkery.matcher.matches"), DeprecationLevel.ERROR)
158162
public fun <T> MokkeryMatcherScope.matching(
159163
toString: () -> String,
160164
predicate: (T) -> Boolean,
@@ -163,7 +167,7 @@ public fun <T> MokkeryMatcherScope.matching(
163167
/**
164168
* **DEPRECATED: Renamed to [matchesBy]**
165169
*/
166-
@Deprecated("Renamed to `matchesBy`.", ReplaceWith("matchesBy(function)", "dev.mokkery.matcher.matchesBy"))
170+
@Deprecated("Renamed to `matchesBy`.", ReplaceWith("matchesBy(function)", "dev.mokkery.matcher.matchesBy"), DeprecationLevel.ERROR)
167171
public fun <T> MokkeryMatcherScope.matchingBy(
168172
function: KFunction1<T, Boolean>
169173
): T = matchesBy(function)

mokkery-runtime/src/commonMain/kotlin/dev/mokkery/matcher/logical/LogicalMatchers.kt

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -51,13 +51,15 @@ public object LogicalMatchers {
5151

5252
@Deprecated(
5353
"This field should not be used anymore. Now, `Not` matcher might contain more than one matcher.",
54-
ReplaceWith("matchers[0]")
54+
ReplaceWith("matchers[0]"),
55+
DeprecationLevel.ERROR
5556
)
5657
public val matcher: ArgMatcher<T> get() = matchers[0]
5758

5859
@Deprecated(
5960
"This constructor should not be used anymore. Now, `Not` matcher might contain more than one matcher.",
60-
ReplaceWith("Not(listOf<_>(matcher))")
61+
ReplaceWith("Not(listOf<_>(matcher))"),
62+
DeprecationLevel.ERROR
6163
)
6264
public constructor(matcher: ArgMatcher<T>) : this(listOf(matcher))
6365

mokkery-runtime/src/commonMain/kotlin/dev/mokkery/matcher/varargs/AnyVarargsMatchersApi.kt

Lines changed: 13 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -8,77 +8,77 @@ import dev.mokkery.matcher.any
88
/**
99
* Matches any sequence of varargs.
1010
*/
11-
@Deprecated(OBSOLETE_VARARGS_MESSAGE, ReplaceWith("any()", "dev.mokkery.matcher.any"))
11+
@Deprecated(OBSOLETE_VARARGS_MESSAGE, ReplaceWith("any()", "dev.mokkery.matcher.any"), DeprecationLevel.ERROR)
1212
public inline fun <reified T> MokkeryMatcherScope.anyVarargs(): Array<T> = any()
1313

1414
/**
1515
* [anyVarargs] variant for [BooleanArray].
1616
*/
17-
@Deprecated(OBSOLETE_VARARGS_MESSAGE, ReplaceWith("any()", "dev.mokkery.matcher.any"))
17+
@Deprecated(OBSOLETE_VARARGS_MESSAGE, ReplaceWith("any()", "dev.mokkery.matcher.any"), DeprecationLevel.ERROR)
1818
public fun MokkeryMatcherScope.anyVarargsBoolean(): BooleanArray = any()
1919

2020
/**
2121
* [anyVarargs] variant for [CharArray].
2222
*/
23-
@Deprecated(OBSOLETE_VARARGS_MESSAGE, ReplaceWith("any()", "dev.mokkery.matcher.any"))
23+
@Deprecated(OBSOLETE_VARARGS_MESSAGE, ReplaceWith("any()", "dev.mokkery.matcher.any"), DeprecationLevel.ERROR)
2424
public fun MokkeryMatcherScope.anyVarargsChar(): CharArray = any()
2525

2626
/**
2727
* [anyVarargs] variant for [ByteArray].
2828
*/
29-
@Deprecated(OBSOLETE_VARARGS_MESSAGE, ReplaceWith("any()", "dev.mokkery.matcher.any"))
29+
@Deprecated(OBSOLETE_VARARGS_MESSAGE, ReplaceWith("any()", "dev.mokkery.matcher.any"), DeprecationLevel.ERROR)
3030
public fun MokkeryMatcherScope.anyVarargsByte(): ByteArray = any()
3131

3232
/**
3333
* [anyVarargs] variant for [UByteArray].
3434
*/
35-
@Deprecated(OBSOLETE_VARARGS_MESSAGE, ReplaceWith("any()", "dev.mokkery.matcher.any"))
35+
@Deprecated(OBSOLETE_VARARGS_MESSAGE, ReplaceWith("any()", "dev.mokkery.matcher.any"), DeprecationLevel.ERROR)
3636
public fun MokkeryMatcherScope.anyVarargsUByte(): UByteArray = any()
3737

3838
/**
3939
* [anyVarargs] variant for [ShortArray].
4040
*/
41-
@Deprecated(OBSOLETE_VARARGS_MESSAGE, ReplaceWith("any()", "dev.mokkery.matcher.any"))
41+
@Deprecated(OBSOLETE_VARARGS_MESSAGE, ReplaceWith("any()", "dev.mokkery.matcher.any"), DeprecationLevel.ERROR)
4242
public fun MokkeryMatcherScope.anyVarargsShort(): ShortArray = any()
4343

4444
/**
4545
* [anyVarargs] variant for [UShortArray].
4646
*/
47-
@Deprecated(OBSOLETE_VARARGS_MESSAGE, ReplaceWith("any()", "dev.mokkery.matcher.any"))
47+
@Deprecated(OBSOLETE_VARARGS_MESSAGE, ReplaceWith("any()", "dev.mokkery.matcher.any"), DeprecationLevel.ERROR)
4848
public fun MokkeryMatcherScope.anyVarargsUShort(): UShortArray = any()
4949

5050
/**
5151
* [anyVarargs] variant for [IntArray].
5252
*/
53-
@Deprecated(OBSOLETE_VARARGS_MESSAGE, ReplaceWith("any()", "dev.mokkery.matcher.any"))
53+
@Deprecated(OBSOLETE_VARARGS_MESSAGE, ReplaceWith("any()", "dev.mokkery.matcher.any"), DeprecationLevel.ERROR)
5454
public fun MokkeryMatcherScope.anyVarargsInt(): IntArray = any()
5555

5656
/**
5757
* [anyVarargs] variant for [UIntArray].
5858
*/
59-
@Deprecated(OBSOLETE_VARARGS_MESSAGE, ReplaceWith("any()", "dev.mokkery.matcher.any"))
59+
@Deprecated(OBSOLETE_VARARGS_MESSAGE, ReplaceWith("any()", "dev.mokkery.matcher.any"), DeprecationLevel.ERROR)
6060
public fun MokkeryMatcherScope.anyVarargsUInt(): IntArray = any()
6161

6262
/**
6363
* [anyVarargs] variant for [LongArray].
6464
*/
65-
@Deprecated(OBSOLETE_VARARGS_MESSAGE, ReplaceWith("any()", "dev.mokkery.matcher.any"))
65+
@Deprecated(OBSOLETE_VARARGS_MESSAGE, ReplaceWith("any()", "dev.mokkery.matcher.any"), DeprecationLevel.ERROR)
6666
public fun MokkeryMatcherScope.anyVarargsLong(): LongArray = any()
6767

6868
/**
6969
* [anyVarargs] variant for [ULongArray].
7070
*/
71-
@Deprecated(OBSOLETE_VARARGS_MESSAGE, ReplaceWith("any()", "dev.mokkery.matcher.any"))
71+
@Deprecated(OBSOLETE_VARARGS_MESSAGE, ReplaceWith("any()", "dev.mokkery.matcher.any"), DeprecationLevel.ERROR)
7272
public fun MokkeryMatcherScope.anyVarargsULong(): ULongArray = any()
7373

7474
/**
7575
* [anyVarargs] variant for [FloatArray].
7676
*/
77-
@Deprecated(OBSOLETE_VARARGS_MESSAGE, ReplaceWith("any()", "dev.mokkery.matcher.any"))
77+
@Deprecated(OBSOLETE_VARARGS_MESSAGE, ReplaceWith("any()", "dev.mokkery.matcher.any"), DeprecationLevel.ERROR)
7878
public fun MokkeryMatcherScope.anyVarargsFloat(): FloatArray = any()
7979

8080
/**
8181
* [anyVarargs] variant for [DoubleArray].
8282
*/
83-
@Deprecated(OBSOLETE_VARARGS_MESSAGE, ReplaceWith("any()", "dev.mokkery.matcher.any"))
83+
@Deprecated(OBSOLETE_VARARGS_MESSAGE, ReplaceWith("any()", "dev.mokkery.matcher.any"), DeprecationLevel.ERROR)
8484
public fun MokkeryMatcherScope.anyVarargsDouble(): DoubleArray = any()

mokkery-runtime/src/commonMain/kotlin/dev/mokkery/matcher/varargs/VarArgMatcher.kt

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -37,15 +37,15 @@ internal const val OBSOLETE_VARARGS_MESSAGE = "Obsolete varargs API. Read `VarAr
3737
* // Matches a call with varargs that starts with 1, ends with 10, and has at least two elements in between.
3838
* ```
3939
*/
40-
@Deprecated(OBSOLETE_VARARGS_MESSAGE)
41-
@Suppress("DEPRECATION")
40+
@Deprecated(OBSOLETE_VARARGS_MESSAGE, level = DeprecationLevel.ERROR)
41+
@Suppress("DEPRECATION_ERROR")
4242
public sealed interface VarArgMatcher : ArgMatcher<Any?> {
4343

4444

4545
/**
4646
* Base class for any [VarArgMatcher]. Returns false if arg is not an array or list.
4747
*/
48-
@Deprecated(OBSOLETE_VARARGS_MESSAGE, ReplaceWith("ArrayArgMatcher", "dev.mokkery.matcher.collections.ArrayArgMatcher"))
48+
@Deprecated(OBSOLETE_VARARGS_MESSAGE, ReplaceWith("ArrayArgMatcher", "dev.mokkery.matcher.collections.ArrayArgMatcher"), DeprecationLevel.ERROR)
4949
public abstract class Base<in T> : VarArgMatcher {
5050

5151
final override fun matches(arg: Any?): Boolean {
@@ -62,7 +62,7 @@ public sealed interface VarArgMatcher : ArgMatcher<Any?> {
6262
*/
6363
@DelicateMokkeryApi
6464
@Poko
65-
@Deprecated(OBSOLETE_VARARGS_MESSAGE, ReplaceWith("CollectionArgMatchers.ArrayAllMatch", "dev.mokkery.matcher.collections.CollectionArgMatchers"))
65+
@Deprecated(OBSOLETE_VARARGS_MESSAGE, ReplaceWith("CollectionArgMatchers.ArrayAllMatch", "dev.mokkery.matcher.collections.CollectionArgMatchers"), DeprecationLevel.ERROR)
6666
public class AllThat<T>(private val type: KClass<*>, private val predicate: (T) -> Boolean) : Base<T>() {
6767

6868
override fun matchesVarargs(varargs: List<T>): Boolean = varargs.all(predicate)
@@ -76,7 +76,7 @@ public sealed interface VarArgMatcher : ArgMatcher<Any?> {
7676
*/
7777
@DelicateMokkeryApi
7878
@Poko
79-
@Deprecated(OBSOLETE_VARARGS_MESSAGE, ReplaceWith("CollectionArgMatchers.ArrayAnyMatch", "dev.mokkery.matcher.collections.CollectionArgMatchers"))
79+
@Deprecated(OBSOLETE_VARARGS_MESSAGE, ReplaceWith("CollectionArgMatchers.ArrayAnyMatch", "dev.mokkery.matcher.collections.CollectionArgMatchers"), DeprecationLevel.ERROR)
8080
public class AnyThat<T>(private val type: KClass<*>, private val predicate: (T) -> Boolean) : Base<T>() {
8181

8282
override fun matchesVarargs(varargs: List<T>): Boolean = varargs.any(predicate)
@@ -90,7 +90,7 @@ public sealed interface VarArgMatcher : ArgMatcher<Any?> {
9090
*/
9191
@DelicateMokkeryApi
9292
@Poko
93-
@Deprecated(OBSOLETE_VARARGS_MESSAGE, ReplaceWith("ArgMatcher.Any", "dev.mokkery.matcher.ArgMatcher"))
93+
@Deprecated(OBSOLETE_VARARGS_MESSAGE, ReplaceWith("ArgMatcher.Any", "dev.mokkery.matcher.ArgMatcher"), DeprecationLevel.ERROR)
9494
public class AnyOf(private val type: KClass<*>) : Base<Any?>() {
9595

9696
override fun matchesVarargs(varargs: List<Any?>): Boolean = true

mokkery-runtime/src/commonMain/kotlin/dev/mokkery/matcher/varargs/VarargsAllMatchersApi.kt

Lines changed: 26 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,8 @@ import dev.mokkery.matcher.collections.containsAllUShorts
2222
*/
2323
@Deprecated(
2424
OBSOLETE_VARARGS_MESSAGE,
25-
ReplaceWith("containsAllElements(predicate)", "dev.mokkery.matcher.collections.containsAllElements")
25+
ReplaceWith("containsAllElements(predicate)", "dev.mokkery.matcher.collections.containsAllElements"),
26+
DeprecationLevel.ERROR
2627
)
2728
public inline fun <reified T> MokkeryMatcherScope.varargsAll(
2829
noinline predicate: (T) -> Boolean
@@ -33,7 +34,8 @@ public inline fun <reified T> MokkeryMatcherScope.varargsAll(
3334
*/
3435
@Deprecated(
3536
OBSOLETE_VARARGS_MESSAGE,
36-
ReplaceWith("containsAllBooleans(predicate)", "dev.mokkery.matcher.collections.containsAllBooleans")
37+
ReplaceWith("containsAllBooleans(predicate)", "dev.mokkery.matcher.collections.containsAllBooleans"),
38+
DeprecationLevel.ERROR
3739
)
3840
public fun MokkeryMatcherScope.varargsBooleanAll(
3941
predicate: (Boolean) -> Boolean
@@ -44,7 +46,8 @@ public fun MokkeryMatcherScope.varargsBooleanAll(
4446
*/
4547
@Deprecated(
4648
OBSOLETE_VARARGS_MESSAGE,
47-
ReplaceWith("containsAllChars(predicate)", "dev.mokkery.matcher.collections.containsAllChars")
49+
ReplaceWith("containsAllChars(predicate)", "dev.mokkery.matcher.collections.containsAllChars"),
50+
DeprecationLevel.ERROR
4851
)
4952
public fun MokkeryMatcherScope.varargsCharAll(
5053
predicate: (Char) -> Boolean
@@ -55,7 +58,8 @@ public fun MokkeryMatcherScope.varargsCharAll(
5558
*/
5659
@Deprecated(
5760
OBSOLETE_VARARGS_MESSAGE,
58-
ReplaceWith("containsAllBytes(predicate)", "dev.mokkery.matcher.collections.containsAllBytes")
61+
ReplaceWith("containsAllBytes(predicate)", "dev.mokkery.matcher.collections.containsAllBytes"),
62+
DeprecationLevel.ERROR
5963
)
6064
public fun MokkeryMatcherScope.varargsByteAll(
6165
predicate: (Byte) -> Boolean
@@ -66,7 +70,8 @@ public fun MokkeryMatcherScope.varargsByteAll(
6670
*/
6771
@Deprecated(
6872
OBSOLETE_VARARGS_MESSAGE,
69-
ReplaceWith("containsAllUBytes(predicate)", "dev.mokkery.matcher.collections.containsAllUBytes")
73+
ReplaceWith("containsAllUBytes(predicate)", "dev.mokkery.matcher.collections.containsAllUBytes"),
74+
DeprecationLevel.ERROR
7075
)
7176
public fun MokkeryMatcherScope.varargsUByteAll(
7277
predicate: (UByte) -> Boolean
@@ -77,7 +82,8 @@ public fun MokkeryMatcherScope.varargsUByteAll(
7782
*/
7883
@Deprecated(
7984
OBSOLETE_VARARGS_MESSAGE,
80-
ReplaceWith("containsAllShorts(predicate)", "dev.mokkery.matcher.collections.containsAllShorts")
85+
ReplaceWith("containsAllShorts(predicate)", "dev.mokkery.matcher.collections.containsAllShorts"),
86+
DeprecationLevel.ERROR
8187
)
8288
public fun MokkeryMatcherScope.varargsShortAll(
8389
predicate: (Short) -> Boolean
@@ -88,7 +94,8 @@ public fun MokkeryMatcherScope.varargsShortAll(
8894
*/
8995
@Deprecated(
9096
OBSOLETE_VARARGS_MESSAGE,
91-
ReplaceWith("containsAllUShorts(predicate)", "dev.mokkery.matcher.collections.containsAllUShorts")
97+
ReplaceWith("containsAllUShorts(predicate)", "dev.mokkery.matcher.collections.containsAllUShorts"),
98+
DeprecationLevel.ERROR
9299
)
93100
public fun MokkeryMatcherScope.varargsUShortAll(
94101
predicate: (UShort) -> Boolean
@@ -99,7 +106,8 @@ public fun MokkeryMatcherScope.varargsUShortAll(
99106
*/
100107
@Deprecated(
101108
OBSOLETE_VARARGS_MESSAGE,
102-
ReplaceWith("containsAllInts(predicate)", "dev.mokkery.matcher.collections.containsAllInts")
109+
ReplaceWith("containsAllInts(predicate)", "dev.mokkery.matcher.collections.containsAllInts"),
110+
DeprecationLevel.ERROR
103111
)
104112
public fun MokkeryMatcherScope.varargsIntAll(
105113
predicate: (Int) -> Boolean
@@ -110,7 +118,8 @@ public fun MokkeryMatcherScope.varargsIntAll(
110118
*/
111119
@Deprecated(
112120
OBSOLETE_VARARGS_MESSAGE,
113-
ReplaceWith("containsAllUInts(predicate)", "dev.mokkery.matcher.collections.containsAllUInts")
121+
ReplaceWith("containsAllUInts(predicate)", "dev.mokkery.matcher.collections.containsAllUInts"),
122+
DeprecationLevel.ERROR
114123
)
115124
public fun MokkeryMatcherScope.varargsUIntAll(
116125
predicate: (UInt) -> Boolean
@@ -121,7 +130,8 @@ public fun MokkeryMatcherScope.varargsUIntAll(
121130
*/
122131
@Deprecated(
123132
OBSOLETE_VARARGS_MESSAGE,
124-
ReplaceWith("containsAllLongs(predicate)", "dev.mokkery.matcher.collections.containsAllLongs")
133+
ReplaceWith("containsAllLongs(predicate)", "dev.mokkery.matcher.collections.containsAllLongs"),
134+
DeprecationLevel.ERROR
125135
)
126136
public fun MokkeryMatcherScope.varargsLongAll(
127137
predicate: (Long) -> Boolean
@@ -132,7 +142,8 @@ public fun MokkeryMatcherScope.varargsLongAll(
132142
*/
133143
@Deprecated(
134144
OBSOLETE_VARARGS_MESSAGE,
135-
ReplaceWith("containsAllULongs(predicate)", "dev.mokkery.matcher.collections.containsAllULongs")
145+
ReplaceWith("containsAllULongs(predicate)", "dev.mokkery.matcher.collections.containsAllULongs"),
146+
DeprecationLevel.ERROR
136147
)
137148
public fun MokkeryMatcherScope.varargsULongAll(
138149
predicate: (ULong) -> Boolean
@@ -143,7 +154,8 @@ public fun MokkeryMatcherScope.varargsULongAll(
143154
*/
144155
@Deprecated(
145156
OBSOLETE_VARARGS_MESSAGE,
146-
ReplaceWith("containsAllFloats(predicate)", "dev.mokkery.matcher.collections.containsAllFloats")
157+
ReplaceWith("containsAllFloats(predicate)", "dev.mokkery.matcher.collections.containsAllFloats"),
158+
DeprecationLevel.ERROR
147159
)
148160
public fun MokkeryMatcherScope.varargsFloatAll(
149161
predicate: (Float) -> Boolean
@@ -154,7 +166,8 @@ public fun MokkeryMatcherScope.varargsFloatAll(
154166
*/
155167
@Deprecated(
156168
OBSOLETE_VARARGS_MESSAGE,
157-
ReplaceWith("containsAllDoubles(predicate)", "dev.mokkery.matcher.collections.containsAllDoubles")
169+
ReplaceWith("containsAllDoubles(predicate)", "dev.mokkery.matcher.collections.containsAllDoubles"),
170+
DeprecationLevel.ERROR
158171
)
159172
public fun MokkeryMatcherScope.varargsDoubleAll(
160173
predicate: (Double) -> Boolean

0 commit comments

Comments
 (0)