snapshots for errors

This commit is contained in:
Ben Kraft
2021-04-15 15:42:05 -07:00
parent ddf4b03350
commit f8f81dad7b
26 changed files with 137 additions and 48 deletions
+5
View File
@@ -0,0 +1,5 @@
package errors
const _ = `# @genqlient
query MyQuery { g }
`
+1
View File
@@ -0,0 +1 @@
query-spec does not match schema: testdata/errors/InvalidQuery.go:2: Cannot query field "g" on type "Query". Did you mean "f"?
+1
View File
@@ -0,0 +1 @@
query MyQuery { g }
+1
View File
@@ -0,0 +1 @@
query-spec does not match schema: testdata/errors/InvalidQuery.graphql:1: Cannot query field "g" on type "Query". Did you mean "f"?
+3
View File
@@ -0,0 +1,3 @@
type Query {
f: String
}
+5
View File
@@ -0,0 +1,5 @@
package errors
const _ = `# @genqlient
query InvalidScalar { f }
`
+1
View File
@@ -0,0 +1 @@
unknown name "bogus"; expected a builtin or path/to/package.Name
+1
View File
@@ -0,0 +1 @@
query InvalidScalar { f }
+1
View File
@@ -0,0 +1 @@
unknown name "bogus"; expected a builtin or path/to/package.Name
+3
View File
@@ -0,0 +1,3 @@
scalar InvalidScalar
type Query { f: InvalidScalar }
+5
View File
@@ -0,0 +1,5 @@
package errors
const _ = `# @genqlient
query InvalidSchema { f }
`
+1
View File
@@ -0,0 +1 @@
invalid schema file testdata/errors/InvalidSchema.schema.graphql: testdata/errors/InvalidSchema.schema.graphql:4: Expected :, found }
+1
View File
@@ -0,0 +1 @@
query InvalidSchema { f }
+1
View File
@@ -0,0 +1 @@
invalid schema file testdata/errors/InvalidSchema.schema.graphql: testdata/errors/InvalidSchema.schema.graphql:4: Expected :, found }
+4
View File
@@ -0,0 +1,4 @@
type Query {
f: String!
bogus
}
+1
View File
@@ -0,0 +1 @@
package errors
+1
View File
@@ -0,0 +1 @@
no queries found in [testdata/errors/NoQuery.go]
View File
+1
View File
@@ -0,0 +1 @@
no queries found in [testdata/errors/NoQuery.graphql]
+1
View File
@@ -0,0 +1 @@
type Query { f: String }
+5
View File
@@ -0,0 +1,5 @@
package errors
const _ = `# @genqlient
query UnknownScalar { f }
`
+1
View File
@@ -0,0 +1 @@
unknown scalar UnknownScalar: please add it to genqlient.yaml
+1
View File
@@ -0,0 +1 @@
query UnknownScalar { f }
+1
View File
@@ -0,0 +1 @@
unknown scalar UnknownScalar: please add it to genqlient.yaml
+3
View File
@@ -0,0 +1,3 @@
scalar UnknownScalar
type Query { f: UnknownScalar }