@@ -73,12 +73,17 @@ impl Root {
73
73
0
74
74
}
75
75
76
- fn attr_arg_descr ( arg : i32 ) -> i32 {
77
- 0
78
- }
79
- fn attr_arg_descr_collapse ( arg : i32 ) -> i32 {
80
- 0
81
- }
76
+ // TODO: enable once [this issue](https://github.com/graphql-rust/juniper/pull/441) is implemented
77
+ // fn attr_arg_descr(
78
+ // #[graphql(description = "The arg")]
79
+ // arg: i32) -> i32
80
+ // { 0 }
81
+ //
82
+ // fn attr_arg_descr_collapse(
83
+ // #[graphql(description = "The first arg")]
84
+ // #[graphql(description = "and more details")]
85
+ // arg: i32,
86
+ // ) -> i32 { 0 }
82
87
83
88
#[ graphql( arguments( arg( default = 123 , ) , ) ) ]
84
89
fn arg_with_default ( arg : i32 ) -> i32 {
@@ -558,71 +563,72 @@ fn introspect_field_multi_args_descr_trailing_comma() {
558
563
} ) ;
559
564
}
560
565
561
- #[ test]
562
- fn introspect_field_attr_arg_descr ( ) {
563
- run_args_info_query ( "attrArgDescr" , |args| {
564
- assert_eq ! ( args. len( ) , 1 ) ;
565
-
566
- assert ! ( args. contains( & Value :: object(
567
- vec![
568
- ( "name" , Value :: scalar( "arg" ) ) ,
569
- ( "description" , Value :: scalar( "The arg" ) ) ,
570
- ( "defaultValue" , Value :: null( ) ) ,
571
- (
572
- "type" ,
573
- Value :: object(
574
- vec![
575
- ( "name" , Value :: null( ) ) ,
576
- (
577
- "ofType" ,
578
- Value :: object(
579
- vec![ ( "name" , Value :: scalar( "Int" ) ) ] . into_iter( ) . collect( ) ,
580
- ) ,
581
- ) ,
582
- ]
583
- . into_iter( )
584
- . collect( ) ,
585
- ) ,
586
- ) ,
587
- ]
588
- . into_iter( )
589
- . collect( ) ,
590
- ) ) ) ;
591
- } ) ;
592
- }
593
-
594
- #[ test]
595
- fn introspect_field_attr_arg_descr_collapse ( ) {
596
- run_args_info_query ( "attrArgDescrCollapse" , |args| {
597
- assert_eq ! ( args. len( ) , 1 ) ;
598
-
599
- assert ! ( args. contains( & Value :: object(
600
- vec![
601
- ( "name" , Value :: scalar( "arg" ) ) ,
602
- ( "description" , Value :: scalar( "The arg\n and more details" ) ) ,
603
- ( "defaultValue" , Value :: null( ) ) ,
604
- (
605
- "type" ,
606
- Value :: object(
607
- vec![
608
- ( "name" , Value :: null( ) ) ,
609
- (
610
- "ofType" ,
611
- Value :: object(
612
- vec![ ( "name" , Value :: scalar( "Int" ) ) ] . into_iter( ) . collect( ) ,
613
- ) ,
614
- ) ,
615
- ]
616
- . into_iter( )
617
- . collect( ) ,
618
- ) ,
619
- ) ,
620
- ]
621
- . into_iter( )
622
- . collect( ) ,
623
- ) ) ) ;
624
- } ) ;
625
- }
566
+ // TODO: enable once [this issue](https://github.com/graphql-rust/juniper/pull/441) is implemented
567
+ //#[test]
568
+ //fn introspect_field_attr_arg_descr() {
569
+ // run_args_info_query("attrArgDescr", |args| {
570
+ // assert_eq!(args.len(), 1);
571
+ //
572
+ // assert!(args.contains(&Value::object(
573
+ // vec![
574
+ // ("name", Value::scalar("arg")),
575
+ // ("description", Value::scalar("The arg")),
576
+ // ("defaultValue", Value::null()),
577
+ // (
578
+ // "type",
579
+ // Value::object(
580
+ // vec![
581
+ // ("name", Value::null()),
582
+ // (
583
+ // "ofType",
584
+ // Value::object(
585
+ // vec![("name", Value::scalar("Int"))].into_iter().collect(),
586
+ // ),
587
+ // ),
588
+ // ]
589
+ // .into_iter()
590
+ // .collect(),
591
+ // ),
592
+ // ),
593
+ // ]
594
+ // .into_iter()
595
+ // .collect(),
596
+ // )));
597
+ // });
598
+ //}
599
+ //
600
+ //#[test]
601
+ //fn introspect_field_attr_arg_descr_collapse() {
602
+ // run_args_info_query("attrArgDescrCollapse", |args| {
603
+ // assert_eq!(args.len(), 1);
604
+ //
605
+ // assert!(args.contains(&Value::object(
606
+ // vec![
607
+ // ("name", Value::scalar("arg")),
608
+ // ("description", Value::scalar("The arg\nand more details")),
609
+ // ("defaultValue", Value::null()),
610
+ // (
611
+ // "type",
612
+ // Value::object(
613
+ // vec![
614
+ // ("name", Value::null()),
615
+ // (
616
+ // "ofType",
617
+ // Value::object(
618
+ // vec![("name", Value::scalar("Int"))].into_iter().collect(),
619
+ // ),
620
+ // ),
621
+ // ]
622
+ // .into_iter()
623
+ // .collect(),
624
+ // ),
625
+ // ),
626
+ // ]
627
+ // .into_iter()
628
+ // .collect(),
629
+ // )));
630
+ // });
631
+ //}
626
632
627
633
#[ test]
628
634
fn introspect_field_arg_with_default ( ) {
0 commit comments