// Tests for the various helper functions used by the needless_continue
// lint that don't belong in utils.
-extern crate clippy_lints;
use clippy_lints::needless_continue::{erode_block, erode_from_back, erode_from_front};
#[test]
-#[cfg_attr(rustfmt, rustfmt_skip)]
+#[rustfmt::skip]
fn test_erode_from_back() {
let input = "\
{
}
#[test]
-#[cfg_attr(rustfmt, rustfmt_skip)]
+#[rustfmt::skip]
fn test_erode_from_back_no_brace() {
let input = "\
let x = 5;
}
#[test]
-#[cfg_attr(rustfmt, rustfmt_skip)]
+#[rustfmt::skip]
fn test_erode_from_front() {
let input = "
{
}
#[test]
-#[cfg_attr(rustfmt, rustfmt_skip)]
+#[rustfmt::skip]
fn test_erode_from_front_no_brace() {
let input = "
something();
assert_eq!(expected, got);
}
-
#[test]
-#[cfg_attr(rustfmt, rustfmt_skip)]
+#[rustfmt::skip]
fn test_erode_block() {
let input = "