@@ -108,34 +108,32 @@ mod tests {
108108 Selection ( vec![ SelectionItem :: Field ( SelectionField {
109109 name: "animal" . to_string( ) ,
110110 fields: Selection ( vec![
111- SelectionItem :: Field ( SelectionField {
112- name: "isCat" . to_string( ) ,
113- fields: Selection ( Vec :: new( ) ) ,
114- } ) ,
115- SelectionItem :: Field ( SelectionField {
116- name: "isHorse" . to_string( ) ,
117- fields: Selection ( Vec :: new( ) ) ,
118- } ) ,
119- SelectionItem :: FragmentSpread ( SelectionFragmentSpread {
120- fragment_name: "Timestamps" . to_string( ) ,
121- } ) ,
122- SelectionItem :: Field ( SelectionField {
123- name: "barks" . to_string( ) ,
124- fields: Selection ( Vec :: new( ) ) ,
125- } ) ,
126- SelectionItem :: InlineFragment ( SelectionInlineFragment {
127- on: "Dog" . to_string( ) ,
128- fields: Selection ( vec![
129- SelectionItem :: Field ( SelectionField {
130- name: "rating" . to_string( ) ,
131- fields: Selection ( Vec :: new( ) ) ,
132- } ) ,
133- ] ) ,
134- } ) ,
135- SelectionItem :: Field ( SelectionField {
136- name: "pawsCount" . to_string( ) ,
137- fields: Selection ( Vec :: new( ) ) ,
138- } ) ,
111+ SelectionItem :: Field ( SelectionField {
112+ name: "isCat" . to_string( ) ,
113+ fields: Selection ( Vec :: new( ) ) ,
114+ } ) ,
115+ SelectionItem :: Field ( SelectionField {
116+ name: "isHorse" . to_string( ) ,
117+ fields: Selection ( Vec :: new( ) ) ,
118+ } ) ,
119+ SelectionItem :: FragmentSpread ( SelectionFragmentSpread {
120+ fragment_name: "Timestamps" . to_string( ) ,
121+ } ) ,
122+ SelectionItem :: Field ( SelectionField {
123+ name: "barks" . to_string( ) ,
124+ fields: Selection ( Vec :: new( ) ) ,
125+ } ) ,
126+ SelectionItem :: InlineFragment ( SelectionInlineFragment {
127+ on: "Dog" . to_string( ) ,
128+ fields: Selection ( vec![ SelectionItem :: Field ( SelectionField {
129+ name: "rating" . to_string( ) ,
130+ fields: Selection ( Vec :: new( ) ) ,
131+ } ) ] ) ,
132+ } ) ,
133+ SelectionItem :: Field ( SelectionField {
134+ name: "pawsCount" . to_string( ) ,
135+ fields: Selection ( Vec :: new( ) ) ,
136+ } ) ,
139137 ] ) ,
140138 } ) ] )
141139 ) ;
0 commit comments