aboutsummaryrefslogtreecommitdiff
path: root/crates/ide/src/runnables.rs
diff options
context:
space:
mode:
Diffstat (limited to 'crates/ide/src/runnables.rs')
-rw-r--r--crates/ide/src/runnables.rs201
1 files changed, 32 insertions, 169 deletions
diff --git a/crates/ide/src/runnables.rs b/crates/ide/src/runnables.rs
index 99f11c295..ff386be80 100644
--- a/crates/ide/src/runnables.rs
+++ b/crates/ide/src/runnables.rs
@@ -352,16 +352,9 @@ fn bench() {}
352 0, 352 0,
353 ), 353 ),
354 full_range: 1..13, 354 full_range: 1..13,
355 focus_range: Some( 355 focus_range: 4..8,
356 4..8,
357 ),
358 name: "main", 356 name: "main",
359 kind: Some( 357 kind: Function,
360 Function,
361 ),
362 container_name: None,
363 description: None,
364 docs: None,
365 }, 358 },
366 kind: Bin, 359 kind: Bin,
367 cfg: None, 360 cfg: None,
@@ -372,16 +365,9 @@ fn bench() {}
372 0, 365 0,
373 ), 366 ),
374 full_range: 15..39, 367 full_range: 15..39,
375 focus_range: Some( 368 focus_range: 26..34,
376 26..34,
377 ),
378 name: "test_foo", 369 name: "test_foo",
379 kind: Some( 370 kind: Function,
380 Function,
381 ),
382 container_name: None,
383 description: None,
384 docs: None,
385 }, 371 },
386 kind: Test { 372 kind: Test {
387 test_id: Path( 373 test_id: Path(
@@ -399,16 +385,9 @@ fn bench() {}
399 0, 385 0,
400 ), 386 ),
401 full_range: 41..75, 387 full_range: 41..75,
402 focus_range: Some( 388 focus_range: 62..70,
403 62..70,
404 ),
405 name: "test_foo", 389 name: "test_foo",
406 kind: Some( 390 kind: Function,
407 Function,
408 ),
409 container_name: None,
410 description: None,
411 docs: None,
412 }, 391 },
413 kind: Test { 392 kind: Test {
414 test_id: Path( 393 test_id: Path(
@@ -426,16 +405,9 @@ fn bench() {}
426 0, 405 0,
427 ), 406 ),
428 full_range: 77..99, 407 full_range: 77..99,
429 focus_range: Some( 408 focus_range: 89..94,
430 89..94,
431 ),
432 name: "bench", 409 name: "bench",
433 kind: Some( 410 kind: Function,
434 Function,
435 ),
436 container_name: None,
437 description: None,
438 docs: None,
439 }, 411 },
440 kind: Bench { 412 kind: Bench {
441 test_id: Path( 413 test_id: Path(
@@ -525,16 +497,9 @@ struct StructWithRunnable(String);
525 0, 497 0,
526 ), 498 ),
527 full_range: 1..13, 499 full_range: 1..13,
528 focus_range: Some( 500 focus_range: 4..8,
529 4..8,
530 ),
531 name: "main", 501 name: "main",
532 kind: Some( 502 kind: Function,
533 Function,
534 ),
535 container_name: None,
536 description: None,
537 docs: None,
538 }, 503 },
539 kind: Bin, 504 kind: Bin,
540 cfg: None, 505 cfg: None,
@@ -545,12 +510,7 @@ struct StructWithRunnable(String);
545 0, 510 0,
546 ), 511 ),
547 full_range: 15..74, 512 full_range: 15..74,
548 focus_range: None,
549 name: "should_have_runnable", 513 name: "should_have_runnable",
550 kind: None,
551 container_name: None,
552 description: None,
553 docs: None,
554 }, 514 },
555 kind: DocTest { 515 kind: DocTest {
556 test_id: Path( 516 test_id: Path(
@@ -565,12 +525,7 @@ struct StructWithRunnable(String);
565 0, 525 0,
566 ), 526 ),
567 full_range: 76..148, 527 full_range: 76..148,
568 focus_range: None,
569 name: "should_have_runnable_1", 528 name: "should_have_runnable_1",
570 kind: None,
571 container_name: None,
572 description: None,
573 docs: None,
574 }, 529 },
575 kind: DocTest { 530 kind: DocTest {
576 test_id: Path( 531 test_id: Path(
@@ -585,12 +540,7 @@ struct StructWithRunnable(String);
585 0, 540 0,
586 ), 541 ),
587 full_range: 150..254, 542 full_range: 150..254,
588 focus_range: None,
589 name: "should_have_runnable_2", 543 name: "should_have_runnable_2",
590 kind: None,
591 container_name: None,
592 description: None,
593 docs: None,
594 }, 544 },
595 kind: DocTest { 545 kind: DocTest {
596 test_id: Path( 546 test_id: Path(
@@ -605,12 +555,7 @@ struct StructWithRunnable(String);
605 0, 555 0,
606 ), 556 ),
607 full_range: 756..821, 557 full_range: 756..821,
608 focus_range: None,
609 name: "StructWithRunnable", 558 name: "StructWithRunnable",
610 kind: None,
611 container_name: None,
612 description: None,
613 docs: None,
614 }, 559 },
615 kind: DocTest { 560 kind: DocTest {
616 test_id: Path( 561 test_id: Path(
@@ -649,16 +594,9 @@ impl Data {
649 0, 594 0,
650 ), 595 ),
651 full_range: 1..13, 596 full_range: 1..13,
652 focus_range: Some( 597 focus_range: 4..8,
653 4..8,
654 ),
655 name: "main", 598 name: "main",
656 kind: Some( 599 kind: Function,
657 Function,
658 ),
659 container_name: None,
660 description: None,
661 docs: None,
662 }, 600 },
663 kind: Bin, 601 kind: Bin,
664 cfg: None, 602 cfg: None,
@@ -669,12 +607,7 @@ impl Data {
669 0, 607 0,
670 ), 608 ),
671 full_range: 44..98, 609 full_range: 44..98,
672 focus_range: None,
673 name: "foo", 610 name: "foo",
674 kind: None,
675 container_name: None,
676 description: None,
677 docs: None,
678 }, 611 },
679 kind: DocTest { 612 kind: DocTest {
680 test_id: Path( 613 test_id: Path(
@@ -708,16 +641,9 @@ mod test_mod {
708 0, 641 0,
709 ), 642 ),
710 full_range: 1..51, 643 full_range: 1..51,
711 focus_range: Some( 644 focus_range: 5..13,
712 5..13,
713 ),
714 name: "test_mod", 645 name: "test_mod",
715 kind: Some( 646 kind: Module,
716 Module,
717 ),
718 container_name: None,
719 description: None,
720 docs: None,
721 }, 647 },
722 kind: TestMod { 648 kind: TestMod {
723 path: "test_mod", 649 path: "test_mod",
@@ -730,16 +656,9 @@ mod test_mod {
730 0, 656 0,
731 ), 657 ),
732 full_range: 20..49, 658 full_range: 20..49,
733 focus_range: Some( 659 focus_range: 35..44,
734 35..44,
735 ),
736 name: "test_foo1", 660 name: "test_foo1",
737 kind: Some( 661 kind: Function,
738 Function,
739 ),
740 container_name: None,
741 description: None,
742 docs: None,
743 }, 662 },
744 kind: Test { 663 kind: Test {
745 test_id: Path( 664 test_id: Path(
@@ -792,16 +711,9 @@ mod root_tests {
792 0, 711 0,
793 ), 712 ),
794 full_range: 22..323, 713 full_range: 22..323,
795 focus_range: Some( 714 focus_range: 26..40,
796 26..40,
797 ),
798 name: "nested_tests_0", 715 name: "nested_tests_0",
799 kind: Some( 716 kind: Module,
800 Module,
801 ),
802 container_name: None,
803 description: None,
804 docs: None,
805 }, 717 },
806 kind: TestMod { 718 kind: TestMod {
807 path: "root_tests::nested_tests_0", 719 path: "root_tests::nested_tests_0",
@@ -814,16 +726,9 @@ mod root_tests {
814 0, 726 0,
815 ), 727 ),
816 full_range: 51..192, 728 full_range: 51..192,
817 focus_range: Some( 729 focus_range: 55..69,
818 55..69,
819 ),
820 name: "nested_tests_1", 730 name: "nested_tests_1",
821 kind: Some( 731 kind: Module,
822 Module,
823 ),
824 container_name: None,
825 description: None,
826 docs: None,
827 }, 732 },
828 kind: TestMod { 733 kind: TestMod {
829 path: "root_tests::nested_tests_0::nested_tests_1", 734 path: "root_tests::nested_tests_0::nested_tests_1",
@@ -836,16 +741,9 @@ mod root_tests {
836 0, 741 0,
837 ), 742 ),
838 full_range: 84..126, 743 full_range: 84..126,
839 focus_range: Some( 744 focus_range: 107..121,
840 107..121,
841 ),
842 name: "nested_test_11", 745 name: "nested_test_11",
843 kind: Some( 746 kind: Function,
844 Function,
845 ),
846 container_name: None,
847 description: None,
848 docs: None,
849 }, 747 },
850 kind: Test { 748 kind: Test {
851 test_id: Path( 749 test_id: Path(
@@ -863,16 +761,9 @@ mod root_tests {
863 0, 761 0,
864 ), 762 ),
865 full_range: 140..182, 763 full_range: 140..182,
866 focus_range: Some( 764 focus_range: 163..177,
867 163..177,
868 ),
869 name: "nested_test_12", 765 name: "nested_test_12",
870 kind: Some( 766 kind: Function,
871 Function,
872 ),
873 container_name: None,
874 description: None,
875 docs: None,
876 }, 767 },
877 kind: Test { 768 kind: Test {
878 test_id: Path( 769 test_id: Path(
@@ -890,16 +781,9 @@ mod root_tests {
890 0, 781 0,
891 ), 782 ),
892 full_range: 202..286, 783 full_range: 202..286,
893 focus_range: Some( 784 focus_range: 206..220,
894 206..220,
895 ),
896 name: "nested_tests_2", 785 name: "nested_tests_2",
897 kind: Some( 786 kind: Module,
898 Module,
899 ),
900 container_name: None,
901 description: None,
902 docs: None,
903 }, 787 },
904 kind: TestMod { 788 kind: TestMod {
905 path: "root_tests::nested_tests_0::nested_tests_2", 789 path: "root_tests::nested_tests_0::nested_tests_2",
@@ -912,16 +796,9 @@ mod root_tests {
912 0, 796 0,
913 ), 797 ),
914 full_range: 235..276, 798 full_range: 235..276,
915 focus_range: Some( 799 focus_range: 258..271,
916 258..271,
917 ),
918 name: "nested_test_2", 800 name: "nested_test_2",
919 kind: Some( 801 kind: Function,
920 Function,
921 ),
922 container_name: None,
923 description: None,
924 docs: None,
925 }, 802 },
926 kind: Test { 803 kind: Test {
927 test_id: Path( 804 test_id: Path(
@@ -957,16 +834,9 @@ fn test_foo1() {}
957 0, 834 0,
958 ), 835 ),
959 full_range: 1..50, 836 full_range: 1..50,
960 focus_range: Some( 837 focus_range: 36..45,
961 36..45,
962 ),
963 name: "test_foo1", 838 name: "test_foo1",
964 kind: Some( 839 kind: Function,
965 Function,
966 ),
967 container_name: None,
968 description: None,
969 docs: None,
970 }, 840 },
971 kind: Test { 841 kind: Test {
972 test_id: Path( 842 test_id: Path(
@@ -1009,16 +879,9 @@ fn test_foo1() {}
1009 0, 879 0,
1010 ), 880 ),
1011 full_range: 1..72, 881 full_range: 1..72,
1012 focus_range: Some( 882 focus_range: 58..67,
1013 58..67,
1014 ),
1015 name: "test_foo1", 883 name: "test_foo1",
1016 kind: Some( 884 kind: Function,
1017 Function,
1018 ),
1019 container_name: None,
1020 description: None,
1021 docs: None,
1022 }, 885 },
1023 kind: Test { 886 kind: Test {
1024 test_id: Path( 887 test_id: Path(