|
1 | | -use std::collections::HashMap; |
2 | | - |
| 1 | +use executor::Variables; |
3 | 2 | use value::Value; |
4 | 3 | use schema::model::RootNode; |
5 | 4 | use types::scalars::EmptyMutation; |
@@ -70,7 +69,7 @@ fn test_execution() { |
70 | 69 | "#; |
71 | 70 | let schema = RootNode::new(Root {}, EmptyMutation::<()>::new()); |
72 | 71 |
|
73 | | - let (result, errs) = ::execute(doc, None, &schema, &HashMap::new(), &()) |
| 72 | + let (result, errs) = ::execute(doc, None, &schema, &Variables::new(), &()) |
74 | 73 | .expect("Execution failed"); |
75 | 74 |
|
76 | 75 | assert_eq!(errs, []); |
@@ -107,7 +106,7 @@ fn enum_introspection() { |
107 | 106 | "#; |
108 | 107 | let schema = RootNode::new(Root {}, EmptyMutation::<()>::new()); |
109 | 108 |
|
110 | | - let (result, errs) = ::execute(doc, None, &schema, &HashMap::new(), &()) |
| 109 | + let (result, errs) = ::execute(doc, None, &schema, &Variables::new(), &()) |
111 | 110 | .expect("Execution failed"); |
112 | 111 |
|
113 | 112 | assert_eq!(errs, []); |
@@ -185,7 +184,7 @@ fn interface_introspection() { |
185 | 184 | "#; |
186 | 185 | let schema = RootNode::new(Root {}, EmptyMutation::<()>::new()); |
187 | 186 |
|
188 | | - let (result, errs) = ::execute(doc, None, &schema, &HashMap::new(), &()) |
| 187 | + let (result, errs) = ::execute(doc, None, &schema, &Variables::new(), &()) |
189 | 188 | .expect("Execution failed"); |
190 | 189 |
|
191 | 190 | assert_eq!(errs, []); |
@@ -286,7 +285,7 @@ fn object_introspection() { |
286 | 285 | "#; |
287 | 286 | let schema = RootNode::new(Root {}, EmptyMutation::<()>::new()); |
288 | 287 |
|
289 | | - let (result, errs) = ::execute(doc, None, &schema, &HashMap::new(), &()) |
| 288 | + let (result, errs) = ::execute(doc, None, &schema, &Variables::new(), &()) |
290 | 289 | .expect("Execution failed"); |
291 | 290 |
|
292 | 291 | assert_eq!(errs, []); |
@@ -398,7 +397,7 @@ fn scalar_introspection() { |
398 | 397 | "#; |
399 | 398 | let schema = RootNode::new(Root {}, EmptyMutation::<()>::new()); |
400 | 399 |
|
401 | | - let (result, errs) = ::execute(doc, None, &schema, &HashMap::new(), &()) |
| 400 | + let (result, errs) = ::execute(doc, None, &schema, &Variables::new(), &()) |
402 | 401 | .expect("Execution failed"); |
403 | 402 |
|
404 | 403 | assert_eq!(errs, []); |
|
0 commit comments