aboutsummaryrefslogtreecommitdiff
path: root/crates/assists/src/tests
diff options
context:
space:
mode:
authorbors[bot] <26634292+bors[bot]@users.noreply.github.com>2021-01-06 13:33:25 +0000
committerGitHub <[email protected]>2021-01-06 13:33:25 +0000
commit655ac47ee3fc27de8281b4962831cf051b1e9118 (patch)
tree4818fcd60f5f4110037faac367744c925d5f5075 /crates/assists/src/tests
parented732e86eb88393cdec471b263303adea6ffcb73 (diff)
parent25edc3c60a8fe9a01b1ff7b6a20ceb83d78e2965 (diff)
Merge #7178
7178: Better target for move module r=matklad a=matklad bors r+ 🤖 Co-authored-by: Aleksey Kladov <[email protected]>
Diffstat (limited to 'crates/assists/src/tests')
-rw-r--r--crates/assists/src/tests/generated.rs30
1 files changed, 15 insertions, 15 deletions
diff --git a/crates/assists/src/tests/generated.rs b/crates/assists/src/tests/generated.rs
index b15352cf3..fdebee4fe 100644
--- a/crates/assists/src/tests/generated.rs
+++ b/crates/assists/src/tests/generated.rs
@@ -238,21 +238,6 @@ fn qux(bar: Bar, baz: Baz) {}
238} 238}
239 239
240#[test] 240#[test]
241fn doctest_extract_module_to_file() {
242 check_doc_test(
243 "extract_module_to_file",
244 r#####"
245mod foo {<|>
246 fn t() {}
247}
248"#####,
249 r#####"
250mod foo;
251"#####,
252 )
253}
254
255#[test]
256fn doctest_extract_struct_from_enum_variant() { 241fn doctest_extract_struct_from_enum_variant() {
257 check_doc_test( 242 check_doc_test(
258 "extract_struct_from_enum_variant", 243 "extract_struct_from_enum_variant",
@@ -761,6 +746,21 @@ fn handle(action: Action) {
761} 746}
762 747
763#[test] 748#[test]
749fn doctest_move_module_to_file() {
750 check_doc_test(
751 "move_module_to_file",
752 r#####"
753mod <|>foo {
754 fn t() {}
755}
756"#####,
757 r#####"
758mod foo;
759"#####,
760 )
761}
762
763#[test]
764fn doctest_pull_assignment_up() { 764fn doctest_pull_assignment_up() {
765 check_doc_test( 765 check_doc_test(
766 "pull_assignment_up", 766 "pull_assignment_up",