Skip to content

Commit 16602c6

Browse files
authored
CHORE: Fix minor typos across the repo (#849)
1 parent aeb0008 commit 16602c6

File tree

33 files changed

+73
-73
lines changed

33 files changed

+73
-73
lines changed

examples/federation/gateway/http/ws.go

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ import (
1212
"github.com/wundergraph/graphql-go-tools/execution/subscription"
1313
)
1414

15-
// WebsocketSubscriptionClient is an actual implementation of the subscritpion client interface.
15+
// WebsocketSubscriptionClient is an actual implementation of the subscription client interface.
1616
type WebsocketSubscriptionClient struct {
1717
logger abstractlogger.Logger
1818
// clientConn holds the actual connection to the client.
@@ -94,7 +94,7 @@ func (w *WebsocketSubscriptionClient) WriteToClient(message subscription.Message
9494
return nil
9595
}
9696

97-
// IsConnected will indicate if the websocket conenction is still established.
97+
// IsConnected will indicate if the websocket connection is still established.
9898
func (w *WebsocketSubscriptionClient) IsConnected() bool {
9999
return !w.isClosedConnection
100100
}
@@ -108,7 +108,7 @@ func (w *WebsocketSubscriptionClient) Disconnect() error {
108108
return w.clientConn.Close()
109109
}
110110

111-
// isClosedConnectionError will indicate if the given error is a conenction closed error.
111+
// isClosedConnectionError will indicate if the given error is a connection closed error.
112112
func (w *WebsocketSubscriptionClient) isClosedConnectionError(err error) bool {
113113
if _, ok := err.(wsutil.ClosedError); ok {
114114
w.isClosedConnection = true

execution/engine/federation_integration_static_test.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@ import (
2020
// detector is enabled.
2121
func TestExecutionEngine_FederationAndSubscription_IntegrationTest(t *testing.T) {
2222
if flags.IsWindows {
23-
t.Skip("skip on windows - test is timing dependendent")
23+
t.Skip("skip on windows - test is timing dependent")
2424
}
2525

2626
runIntegration := func(t *testing.T, secondRun bool) {

execution/federationtesting/gateway/http/ws.go

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ import (
1212
"github.com/wundergraph/graphql-go-tools/execution/subscription"
1313
)
1414

15-
// WebsocketSubscriptionClient is an actual implementation of the subscritpion client interface.
15+
// WebsocketSubscriptionClient is an actual implementation of the subscription client interface.
1616
type WebsocketSubscriptionClient struct {
1717
logger abstractlogger.Logger
1818
// clientConn holds the actual connection to the client.
@@ -94,7 +94,7 @@ func (w *WebsocketSubscriptionClient) WriteToClient(message subscription.Message
9494
return nil
9595
}
9696

97-
// IsConnected will indicate if the websocket conenction is still established.
97+
// IsConnected will indicate if the websocket connection is still established.
9898
func (w *WebsocketSubscriptionClient) IsConnected() bool {
9999
return !w.isClosedConnection
100100
}
@@ -108,7 +108,7 @@ func (w *WebsocketSubscriptionClient) Disconnect() error {
108108
return w.clientConn.Close()
109109
}
110110

111-
// isClosedConnectionError will indicate if the given error is a conenction closed error.
111+
// isClosedConnectionError will indicate if the given error is a connection closed error.
112112
func (w *WebsocketSubscriptionClient) isClosedConnectionError(err error) bool {
113113
if _, ok := err.(wsutil.ClosedError); ok {
114114
w.isClosedConnection = true

execution/graphql/schema_test.go

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ import (
1414
)
1515

1616
func TestNewSchemaFromReader(t *testing.T) {
17-
t.Run("should return error when an error occures internally", func(t *testing.T) {
17+
t.Run("should return error when an error occurs internally", func(t *testing.T) {
1818
schemaBytes := []byte("query: Query")
1919
schemaReader := bytes.NewBuffer(schemaBytes)
2020
schema, err := NewSchemaFromReader(schemaReader)
@@ -34,7 +34,7 @@ func TestNewSchemaFromReader(t *testing.T) {
3434
}
3535

3636
func TestNewSchemaFromString(t *testing.T) {
37-
t.Run("should return error when an error occures internally", func(t *testing.T) {
37+
t.Run("should return error when an error occurs internally", func(t *testing.T) {
3838
schemaBytes := []byte("query: Query")
3939
schema, err := NewSchemaFromString(string(schemaBytes))
4040

@@ -82,7 +82,7 @@ func TestSchema_HasQueryType(t *testing.T) {
8282
}
8383
}
8484

85-
t.Run("schema without base defition", func(t *testing.T) {
85+
t.Run("schema without base definition", func(t *testing.T) {
8686
t.Run("should return false when there is no query type present", run(`
8787
schema {
8888
mutation: Mutation
@@ -308,7 +308,7 @@ func TestValidateSchemaString(t *testing.T) {
308308
}
309309
}
310310

311-
t.Run("should successfuly validate broken schema as invalid", run(
311+
t.Run("should successfully validate broken schema as invalid", run(
312312
`type Query {`,
313313
false,
314314
1,
@@ -1164,7 +1164,7 @@ type Planet implements Node {
11641164
terrains: [String]
11651165
11661166
"""
1167-
The percentage of the planet surface that is naturally occuring water or bodies
1167+
The percentage of the planet surface that is naturally occurring water or bodies
11681168
of water.
11691169
"""
11701170
surfaceWater: Float

execution/subscription/legacy_handler_test.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -65,7 +65,7 @@ func TestHandler_Handle(t *testing.T) {
6565
return ctx, nil
6666
})
6767

68-
t.Run("should send connection error message when error on read occurrs", func(t *testing.T) {
68+
t.Run("should send connection error message when error on read occurs", func(t *testing.T) {
6969
client.prepareConnectionInitMessage().withError().and().send()
7070

7171
ctx, cancelFunc := context.WithCancel(context.Background())
@@ -98,7 +98,7 @@ func TestHandler_Handle(t *testing.T) {
9898
assert.Contains(t, messagesFromServer, expectedMessage)
9999
})
100100

101-
t.Run("should send connection error message when error on check initial payload occurrs", func(t *testing.T) {
101+
t.Run("should send connection error message when error on check initial payload occurs", func(t *testing.T) {
102102
initPayloadAuthorization = "123"
103103
defer func() { initPayloadAuthorization = "" }()
104104

pkg/astnormalization/fragment_spread_inlining_test.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -167,7 +167,7 @@ func TestInlineFragments(t *testing.T) {
167167
frag2Field
168168
}`)
169169
})
170-
t.Run("mergeFields interface fields into selection if type implements inferface", func(t *testing.T) {
170+
t.Run("mergeFields interface fields into selection if type implements interface", func(t *testing.T) {
171171
run(fragmentSpreadInline, testDefinition, `
172172
{
173173
dog {

pkg/astnormalization/input_coercion_for_list.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -162,7 +162,7 @@ we analyzing json:
162162
163163
variants:
164164
165-
- array - find correspoding type and go to an each object
165+
- array - find corresponding type and go to an each object
166166
- object - find corresponding type and do deep field analysis
167167
- plain: - do nothing
168168

pkg/astnormalization/variables_default_value_extraction.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -151,7 +151,7 @@ func (v *variablesDefaultValueExtractionVisitor) traverseValue(value ast.Value,
151151
}
152152

153153
listTypeRef := defTypeRef
154-
// ommit not null to get to list itself
154+
// omit not null to get to list itself
155155
if v.definition.Types[listTypeRef].TypeKind == ast.TypeKindNonNull {
156156
listTypeRef = v.definition.Types[listTypeRef].OfType
157157
}

pkg/astparser/testdata/github.schema.graphql

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -5950,7 +5950,7 @@ enum GitSignatureState {
59505950
NO_USER
59515951

59525952
"""
5953-
Valid siganture, though certificate revocation check failed
5953+
Valid signature, though certificate revocation check failed
59545954
"""
59555955
OCSP_ERROR
59565956

@@ -11884,7 +11884,7 @@ type OrgRestoreMemberAuditEntry implements AuditEntry & Node & OrganizationAudit
1188411884
restoredCustomEmailRoutingsCount: Int
1188511885

1188611886
"""
11887-
The number of issue assignemnts for the restored member.
11887+
The number of issue assignments for the restored member.
1188811888
"""
1188911889
restoredIssueAssignmentsCount: Int
1189011890

@@ -13371,7 +13371,7 @@ type OrganizationIdentityProvider implements Node {
1337113371
id: ID!
1337213372

1337313373
"""
13374-
The x509 certificate used by the Identity Provder to sign assertions and responses.
13374+
The x509 certificate used by the Identity Provider to sign assertions and responses.
1337513375
"""
1337613376
idpCertificate: X509Certificate
1337713377

@@ -13774,7 +13774,7 @@ type PinnedEvent implements Node {
1377413774
}
1377513775

1377613776
"""
13777-
An ISO-8601 encoded UTC date string with millisecond precison.
13777+
An ISO-8601 encoded UTC date string with millisecond precision.
1377813778
"""
1377913779
scalar PreciseDateTime
1378013780

@@ -18111,7 +18111,7 @@ type ReferencedEvent implements Node {
1811118111
}
1811218112

1811318113
"""
18114-
Any referencable object
18114+
Any referenceable object
1811518115
"""
1811618116
union ReferencedSubject = Issue | PullRequest
1811718117

pkg/astvalidation/reference/main.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -310,7 +310,7 @@ func (c *Converter) transformLine(line string) (out string, skip bool) {
310310
// handles js multiline strings
311311
case strings.Contains(line, "`"):
312312
if strings.Contains(line, "to.deep.equal") {
313-
// in case string contains chai comparison proceed with a different convertion
313+
// in case string contains chai comparison proceed with a different conversion
314314
out, skip = c.transformLine(line)
315315
} else {
316316
// change insideMultilineString in case we are at start or end of js multiline string

0 commit comments

Comments
 (0)