You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
This checks that the With* label functions are used instead of the previous
inline tags. To catch strings passed to Ginkgo directly instead of the
framework wrapper functions, the final test specs are checked.
recordTextBug(location, "[] in plain text is invalid")
300
+
continue
301
+
}
302
+
// Strip square brackets.
303
+
tag=tag[1 : len(tag)-1]
304
+
ifslices.Contains(labels, tag) {
305
+
// Okay, was also set as label.
306
+
continue
307
+
}
308
+
ifdeprecatedTags.Has(tag) {
309
+
recordTextBug(location, fmt.Sprintf("[%s] in plain text is deprecated and must be added through With%s instead", tag, tag))
310
+
}
311
+
ifdeprecatedStability.Has(tag) {
312
+
recordTextBug(location, fmt.Sprintf("[%s] in plain text is deprecated and must be added by defining the feature gate through WithFeatureGate instead", tag))
313
+
}
314
+
ifindex:=strings.Index(tag, ":"); index>0 {
315
+
prefix:=tag[:index]
316
+
ifdeprecatedTagPrefixes.Has(prefix) {
317
+
recordTextBug(location, fmt.Sprintf("[%s] in plain text is deprecated and must be added through With%s(%s) instead", tag, prefix, tag[index+1:]))
0 commit comments