Switch to cupaloy for snapshots
Slightly uglier filenames, but less code and free diffing! Approved in ADR-466 for Khan use. Fixes #23.
This commit is contained in:
-1
@@ -1 +0,0 @@
|
||||
no queries found, looked in: testdata/errors/NoQuery.go
|
||||
@@ -1 +0,0 @@
|
||||
no queries found, looked in: testdata/errors/NoQuery.graphql
|
||||
+1
@@ -37,3 +37,4 @@ query convertTimezone ($dt: DateTime!, $tz: String) {
|
||||
)
|
||||
return &retval, err
|
||||
}
|
||||
|
||||
+1
-1
@@ -6,4 +6,4 @@
|
||||
"sourceLocation": "testdata/queries/DateTime.graphql"
|
||||
}
|
||||
]
|
||||
}
|
||||
}
|
||||
+1
@@ -30,3 +30,4 @@ query EmptyInterface {
|
||||
)
|
||||
return &retval, err
|
||||
}
|
||||
|
||||
+1
-1
@@ -6,4 +6,4 @@
|
||||
"sourceLocation": "testdata/queries/EmptyInterface.graphql"
|
||||
}
|
||||
]
|
||||
}
|
||||
}
|
||||
+1
@@ -62,3 +62,4 @@ query InputEnumQuery ($role: Role!) {
|
||||
)
|
||||
return &retval, err
|
||||
}
|
||||
|
||||
+1
-1
@@ -6,4 +6,4 @@
|
||||
"sourceLocation": "testdata/queries/InputEnum.graphql"
|
||||
}
|
||||
]
|
||||
}
|
||||
}
|
||||
+1
@@ -79,3 +79,4 @@ query InputObjectQuery ($query: UserQueryInput) {
|
||||
)
|
||||
return &retval, err
|
||||
}
|
||||
|
||||
+1
-1
@@ -6,4 +6,4 @@
|
||||
"sourceLocation": "testdata/queries/InputObject.graphql"
|
||||
}
|
||||
]
|
||||
}
|
||||
}
|
||||
+1
@@ -401,3 +401,4 @@ query InterfaceNesting {
|
||||
)
|
||||
return &retval, err
|
||||
}
|
||||
|
||||
+1
-1
@@ -6,4 +6,4 @@
|
||||
"sourceLocation": "testdata/queries/InterfaceNesting.graphql"
|
||||
}
|
||||
]
|
||||
}
|
||||
}
|
||||
+1
@@ -131,3 +131,4 @@ query InterfaceNoFragmentsQuery {
|
||||
)
|
||||
return &retval, err
|
||||
}
|
||||
|
||||
+1
-1
@@ -6,4 +6,4 @@
|
||||
"sourceLocation": "testdata/queries/InterfaceNoFragments.graphql"
|
||||
}
|
||||
]
|
||||
}
|
||||
}
|
||||
+1
@@ -51,3 +51,4 @@ query ListInputQuery ($names: [String]) {
|
||||
)
|
||||
return &retval, err
|
||||
}
|
||||
|
||||
+1
-1
@@ -6,4 +6,4 @@
|
||||
"sourceLocation": "testdata/queries/ListInput.graphql"
|
||||
}
|
||||
]
|
||||
}
|
||||
}
|
||||
+1
@@ -28,3 +28,4 @@ query ListOfListsOfLists {
|
||||
)
|
||||
return &retval, err
|
||||
}
|
||||
|
||||
+1
-1
@@ -6,4 +6,4 @@
|
||||
"sourceLocation": "testdata/queries/ListOfListsOfLists.graphql"
|
||||
}
|
||||
]
|
||||
}
|
||||
}
|
||||
+1
@@ -123,3 +123,4 @@ query OmitEmptyQuery ($query: UserQueryInput, $queries: [UserQueryInput], $dt: D
|
||||
)
|
||||
return &retval, err
|
||||
}
|
||||
|
||||
+1
-1
@@ -6,4 +6,4 @@
|
||||
"sourceLocation": "testdata/queries/Omitempty.graphql"
|
||||
}
|
||||
]
|
||||
}
|
||||
}
|
||||
+1
@@ -114,3 +114,4 @@ query PointersQuery ($query: UserQueryInput, $dt: DateTime, $tz: String) {
|
||||
)
|
||||
return &retval, err
|
||||
}
|
||||
|
||||
+1
-1
@@ -6,4 +6,4 @@
|
||||
"sourceLocation": "testdata/queries/Pointers.graphql"
|
||||
}
|
||||
]
|
||||
}
|
||||
}
|
||||
+1
@@ -114,3 +114,4 @@ query PointersQuery ($query: UserQueryInput, $dt: DateTime, $tz: String) {
|
||||
)
|
||||
return &retval, err
|
||||
}
|
||||
|
||||
+1
-1
@@ -6,4 +6,4 @@
|
||||
"sourceLocation": "testdata/queries/PointersInline.graphql"
|
||||
}
|
||||
]
|
||||
}
|
||||
}
|
||||
+1
@@ -51,3 +51,4 @@ query QueryWithAlias {
|
||||
)
|
||||
return &retval, err
|
||||
}
|
||||
|
||||
+1
-1
@@ -6,4 +6,4 @@
|
||||
"sourceLocation": "testdata/queries/QueryWithAlias.graphql"
|
||||
}
|
||||
]
|
||||
}
|
||||
}
|
||||
+1
@@ -51,3 +51,4 @@ query QueryWithDoubleAlias {
|
||||
)
|
||||
return &retval, err
|
||||
}
|
||||
|
||||
+1
-1
@@ -6,4 +6,4 @@
|
||||
"sourceLocation": "testdata/queries/QueryWithDoubleAlias.graphql"
|
||||
}
|
||||
]
|
||||
}
|
||||
}
|
||||
+1
@@ -72,3 +72,4 @@ query QueryWithEnums {
|
||||
)
|
||||
return &retval, err
|
||||
}
|
||||
|
||||
+1
-1
@@ -6,4 +6,4 @@
|
||||
"sourceLocation": "testdata/queries/QueryWithEnums.graphql"
|
||||
}
|
||||
]
|
||||
}
|
||||
}
|
||||
+1
@@ -48,3 +48,4 @@ query QueryWithSlices {
|
||||
)
|
||||
return &retval, err
|
||||
}
|
||||
|
||||
+1
-1
@@ -6,4 +6,4 @@
|
||||
"sourceLocation": "testdata/queries/QueryWithSlices.graphql"
|
||||
}
|
||||
]
|
||||
}
|
||||
}
|
||||
+1
@@ -51,3 +51,4 @@ query QueryWithStructs {
|
||||
)
|
||||
return &retval, err
|
||||
}
|
||||
|
||||
+1
-1
@@ -6,4 +6,4 @@
|
||||
"sourceLocation": "testdata/queries/QueryWithStructs.graphql"
|
||||
}
|
||||
]
|
||||
}
|
||||
}
|
||||
+1
@@ -51,3 +51,4 @@ query SimpleInputQuery ($name: String!) {
|
||||
)
|
||||
return &retval, err
|
||||
}
|
||||
|
||||
+1
-1
@@ -6,4 +6,4 @@
|
||||
"sourceLocation": "testdata/queries/SimpleInput.graphql"
|
||||
}
|
||||
]
|
||||
}
|
||||
}
|
||||
+1
@@ -53,3 +53,4 @@ mutation SimpleMutation ($name: String!) {
|
||||
)
|
||||
return &retval, err
|
||||
}
|
||||
|
||||
+1
-1
@@ -6,4 +6,4 @@
|
||||
"sourceLocation": "testdata/queries/SimpleMutation.graphql"
|
||||
}
|
||||
]
|
||||
}
|
||||
}
|
||||
+1
@@ -46,3 +46,4 @@ query SimpleQuery {
|
||||
)
|
||||
return &retval, err
|
||||
}
|
||||
|
||||
+1
-1
@@ -6,4 +6,4 @@
|
||||
"sourceLocation": "testdata/queries/SimpleQuery.graphql"
|
||||
}
|
||||
]
|
||||
}
|
||||
}
|
||||
+1
@@ -48,3 +48,4 @@ query TypeNameQuery {
|
||||
)
|
||||
return &retval, err
|
||||
}
|
||||
|
||||
+1
-1
@@ -6,4 +6,4 @@
|
||||
"sourceLocation": "testdata/queries/TypeName.graphql"
|
||||
}
|
||||
]
|
||||
}
|
||||
}
|
||||
+1
@@ -97,3 +97,4 @@ query UnionNoFragmentsQuery {
|
||||
)
|
||||
return &retval, err
|
||||
}
|
||||
|
||||
+1
-1
@@ -6,4 +6,4 @@
|
||||
"sourceLocation": "testdata/queries/UnionNoFragments.graphql"
|
||||
}
|
||||
]
|
||||
}
|
||||
}
|
||||
+1
@@ -72,3 +72,4 @@ query UsesEnumTwiceQuery {
|
||||
)
|
||||
return &retval, err
|
||||
}
|
||||
|
||||
+1
-1
@@ -6,4 +6,4 @@
|
||||
"sourceLocation": "testdata/queries/UsesEnumTwice.graphql"
|
||||
}
|
||||
]
|
||||
}
|
||||
}
|
||||
+1
@@ -79,3 +79,4 @@ query unexported ($query: UserQueryInput) {
|
||||
)
|
||||
return &retval, err
|
||||
}
|
||||
|
||||
+1
-1
@@ -6,4 +6,4 @@
|
||||
"sourceLocation": "testdata/queries/unexported.graphql"
|
||||
}
|
||||
]
|
||||
}
|
||||
}
|
||||
+1
-1
@@ -1 +1 @@
|
||||
testdata/errors/InvalidQuery.go:4: query-spec does not match schema: Cannot query field "g" on type "Query". Did you mean "f"?
|
||||
testdata/errors/InvalidQuery.go:4: query-spec does not match schema: Cannot query field "g" on type "Query". Did you mean "f"?
|
||||
+1
-1
@@ -1 +1 @@
|
||||
testdata/errors/InvalidQuery.graphql:1: query-spec does not match schema: Cannot query field "g" on type "Query". Did you mean "f"?
|
||||
testdata/errors/InvalidQuery.graphql:1: query-spec does not match schema: Cannot query field "g" on type "Query". Did you mean "f"?
|
||||
+1
-1
@@ -1 +1 @@
|
||||
invalid type-name "bogus" (unknown type-name "bogus"); expected a builtin, path/to/package.Name, interface{}, or a slice, map, or pointer of those
|
||||
invalid type-name "bogus" (unknown type-name "bogus"); expected a builtin, path/to/package.Name, interface{}, or a slice, map, or pointer of those
|
||||
+1
-1
@@ -1 +1 @@
|
||||
invalid type-name "bogus" (unknown type-name "bogus"); expected a builtin, path/to/package.Name, interface{}, or a slice, map, or pointer of those
|
||||
invalid type-name "bogus" (unknown type-name "bogus"); expected a builtin, path/to/package.Name, interface{}, or a slice, map, or pointer of those
|
||||
+1
-1
@@ -1 +1 @@
|
||||
testdata/errors/InvalidSchema.schema.graphql:4: invalid schema file testdata/errors/InvalidSchema.schema.graphql: Expected :, found }
|
||||
testdata/errors/InvalidSchema.schema.graphql:4: invalid schema file testdata/errors/InvalidSchema.schema.graphql: Expected :, found }
|
||||
+1
-1
@@ -1 +1 @@
|
||||
testdata/errors/InvalidSchema.schema.graphql:4: invalid schema file testdata/errors/InvalidSchema.schema.graphql: Expected :, found }
|
||||
testdata/errors/InvalidSchema.schema.graphql:4: invalid schema file testdata/errors/InvalidSchema.schema.graphql: Expected :, found }
|
||||
@@ -0,0 +1 @@
|
||||
no queries found, looked in: testdata/errors/NoQuery.go
|
||||
@@ -0,0 +1 @@
|
||||
no queries found, looked in: testdata/errors/NoQuery.graphql
|
||||
+1
-1
@@ -1 +1 @@
|
||||
testdata/errors/UnknownScalar.schema.graphql:3: unknown scalar UnknownScalar: please add it to genqlient.yaml
|
||||
testdata/errors/UnknownScalar.schema.graphql:3: unknown scalar UnknownScalar: please add it to genqlient.yaml
|
||||
+1
-1
@@ -1 +1 @@
|
||||
testdata/errors/UnknownScalar.schema.graphql:3: unknown scalar UnknownScalar: please add it to genqlient.yaml
|
||||
testdata/errors/UnknownScalar.schema.graphql:3: unknown scalar UnknownScalar: please add it to genqlient.yaml
|
||||
Reference in New Issue
Block a user