Skip to content

Commit d66f885

Browse files
Rename test functions
1 parent f1c3060 commit d66f885

File tree

5 files changed

+17
-17
lines changed

5 files changed

+17
-17
lines changed

components/clarity-repl/src/analysis/lints/noop.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -254,7 +254,7 @@ mod tests {
254254
}
255255

256256
#[test]
257-
fn allow_noop_annotation() {
257+
fn allow_with_annotation() {
258258
#[rustfmt::skip]
259259
let snippet = indoc!("
260260
(define-public (test-func)

components/clarity-repl/src/analysis/lints/unused_const.rs

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -182,7 +182,7 @@ mod tests {
182182
}
183183

184184
#[test]
185-
fn const_used() {
185+
fn used() {
186186
#[rustfmt::skip]
187187
let snippet = indoc!("
188188
(define-constant MINUTES_PER_HOUR u60)
@@ -197,7 +197,7 @@ mod tests {
197197
}
198198

199199
#[test]
200-
fn const_used_before_declaration() {
200+
fn used_before_declaration() {
201201
#[rustfmt::skip]
202202
let snippet = indoc!("
203203
(define-read-only (hours-to-minutes (hours uint))
@@ -212,7 +212,7 @@ mod tests {
212212
}
213213

214214
#[test]
215-
fn const_not_used() {
215+
fn not_used() {
216216
#[rustfmt::skip]
217217
let snippet = indoc!("
218218
(define-constant MINUTES_PER_HOUR u60)
@@ -233,7 +233,7 @@ mod tests {
233233
}
234234

235235
#[test]
236-
fn allow_with_comment() {
236+
fn allow_with_annotation() {
237237
#[rustfmt::skip]
238238
let snippet = indoc!("
239239
;; #[allow(unused_const)]

components/clarity-repl/src/analysis/lints/unused_data_var.rs

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -246,7 +246,7 @@ mod tests {
246246
}
247247

248248
#[test]
249-
fn data_var_used() {
249+
fn used() {
250250
#[rustfmt::skip]
251251
let snippet = indoc!("
252252
(define-data-var counter uint u0)
@@ -261,7 +261,7 @@ mod tests {
261261
}
262262

263263
#[test]
264-
fn data_var_not_set() {
264+
fn not_set() {
265265
#[rustfmt::skip]
266266
let snippet = indoc!("
267267
(define-data-var counter uint u0)
@@ -282,7 +282,7 @@ mod tests {
282282
}
283283

284284
#[test]
285-
fn data_var_not_read() {
285+
fn not_read() {
286286
#[rustfmt::skip]
287287
let snippet = indoc!("
288288
(define-data-var counter uint u0)
@@ -303,7 +303,7 @@ mod tests {
303303
}
304304

305305
#[test]
306-
fn data_var_not_used() {
306+
fn not_used() {
307307
#[rustfmt::skip]
308308
let snippet = indoc!("
309309
(define-data-var counter uint u0)
@@ -324,7 +324,7 @@ mod tests {
324324
}
325325

326326
#[test]
327-
fn allow_with_comment() {
327+
fn allow_with_annotation() {
328328
#[rustfmt::skip]
329329
let snippet = indoc!("
330330
;; #[allow(unused_data_var)]

components/clarity-repl/src/analysis/lints/unused_map.rs

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -309,7 +309,7 @@ mod tests {
309309
}
310310

311311
#[test]
312-
fn map_used_by_insert() {
312+
fn used_by_insert() {
313313
#[rustfmt::skip]
314314
let snippet = indoc!("
315315
(define-map consumed-messages (buff 32) bool)
@@ -326,7 +326,7 @@ mod tests {
326326
}
327327

328328
#[test]
329-
fn map_used_by_set_and_get() {
329+
fn used_by_set_and_get() {
330330
#[rustfmt::skip]
331331
let snippet = indoc!("
332332
(define-map admins principal bool)
@@ -344,7 +344,7 @@ mod tests {
344344
}
345345

346346
#[test]
347-
fn map_not_set() {
347+
fn not_set() {
348348
#[rustfmt::skip]
349349
let snippet = indoc!("
350350
(define-map admins principal bool)
@@ -365,7 +365,7 @@ mod tests {
365365
}
366366

367367
#[test]
368-
fn map_not_read() {
368+
fn not_read() {
369369
#[rustfmt::skip]
370370
let snippet = indoc!("
371371
(define-map admins principal bool)
@@ -386,7 +386,7 @@ mod tests {
386386
}
387387

388388
#[test]
389-
fn map_not_used() {
389+
fn not_used() {
390390
#[rustfmt::skip]
391391
let snippet = indoc!("
392392
(define-map admins principal bool)
@@ -407,7 +407,7 @@ mod tests {
407407
}
408408

409409
#[test]
410-
fn allow_with_comment() {
410+
fn allow_with_annotation() {
411411
#[rustfmt::skip]
412412
let snippet = indoc!("
413413
;; #[allow(unused_map)]

components/clarity-repl/src/analysis/lints/unused_private_fn.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -338,7 +338,7 @@ mod tests {
338338
}
339339

340340
#[test]
341-
fn allow_with_comment() {
341+
fn allow_with_annotation() {
342342
#[rustfmt::skip]
343343
let snippet = indoc!("
344344
;; #[allow(unused_private_fn)]

0 commit comments

Comments
 (0)