Skip to content

Commit af098ad

Browse files
committed
Cleanup spec text
1 parent 1326b52 commit af098ad

File tree

7 files changed

+39
-39
lines changed

7 files changed

+39
-39
lines changed

5_1.go

Lines changed: 10 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ func StreamStatesTestGroup() *TestGroup {
1010

1111
tg.AddTestCase(NewTestCase(
1212
"idle: Sends a DATA frame",
13-
"the endpoint MUST treat this as a connection error (Section 5.4.1) of type PROTOCOL_ERROR.",
13+
"The endpoint MUST treat this as a connection error (Section 5.4.1) of type PROTOCOL_ERROR.",
1414
func(ctx *Context) (expected []Result, actual Result) {
1515
http2Conn := CreateHttp2Conn(ctx, true)
1616
defer http2Conn.conn.Close()
@@ -24,7 +24,7 @@ func StreamStatesTestGroup() *TestGroup {
2424

2525
tg.AddTestCase(NewTestCase(
2626
"idle: Sends a RST_STREAM frame",
27-
"the endpoint MUST treat this as a connection error (Section 5.4.1) of type PROTOCOL_ERROR.",
27+
"The endpoint MUST treat this as a connection error (Section 5.4.1) of type PROTOCOL_ERROR.",
2828
func(ctx *Context) (expected []Result, actual Result) {
2929
http2Conn := CreateHttp2Conn(ctx, true)
3030
defer http2Conn.conn.Close()
@@ -38,7 +38,7 @@ func StreamStatesTestGroup() *TestGroup {
3838

3939
tg.AddTestCase(NewTestCase(
4040
"idle: Sends a WINDOW_UPDATE frame",
41-
"the endpoint MUST treat this as a connection error (Section 5.4.1) of type PROTOCOL_ERROR.",
41+
"The endpoint MUST treat this as a connection error (Section 5.4.1) of type PROTOCOL_ERROR.",
4242
func(ctx *Context) (expected []Result, actual Result) {
4343
http2Conn := CreateHttp2Conn(ctx, true)
4444
defer http2Conn.conn.Close()
@@ -52,7 +52,7 @@ func StreamStatesTestGroup() *TestGroup {
5252

5353
tg.AddTestCase(NewTestCase(
5454
"idle: Sends a CONTINUATION frame",
55-
"the endpoint MUST treat this as a connection error (Section 5.4.1) of type PROTOCOL_ERROR.",
55+
"The endpoint MUST treat this as a connection error (Section 5.4.1) of type PROTOCOL_ERROR.",
5656
func(ctx *Context) (expected []Result, actual Result) {
5757
http2Conn := CreateHttp2Conn(ctx, true)
5858
defer http2Conn.conn.Close()
@@ -75,7 +75,7 @@ func StreamStatesTestGroup() *TestGroup {
7575

7676
tg.AddTestCase(NewTestCase(
7777
"half closed (remote): Sends a DATA frame",
78-
"the endpoint MUST respond with a stream error (Section 5.4.2) of type STREAM_CLOSED.",
78+
"The endpoint MUST respond with a stream error (Section 5.4.2) of type STREAM_CLOSED.",
7979
func(ctx *Context) (expected []Result, actual Result) {
8080
http2Conn := CreateHttp2Conn(ctx, true)
8181
defer http2Conn.conn.Close()
@@ -105,7 +105,7 @@ func StreamStatesTestGroup() *TestGroup {
105105

106106
tg.AddTestCase(NewTestCase(
107107
"half closed (remote): Sends a HEADERS frame",
108-
"the endpoint MUST respond with a stream error (Section 5.4.2) of type STREAM_CLOSED.",
108+
"The endpoint MUST respond with a stream error (Section 5.4.2) of type STREAM_CLOSED.",
109109
func(ctx *Context) (expected []Result, actual Result) {
110110
http2Conn := CreateHttp2Conn(ctx, true)
111111
defer http2Conn.conn.Close()
@@ -140,7 +140,7 @@ func StreamStatesTestGroup() *TestGroup {
140140

141141
tg.AddTestCase(NewTestCase(
142142
"half closed (remote): Sends a CONTINUATION frame",
143-
"the endpoint MUST respond with a stream error (Section 5.4.2) of type STREAM_CLOSED.",
143+
"The endpoint MUST respond with a stream error (Section 5.4.2) of type STREAM_CLOSED.",
144144
func(ctx *Context) (expected []Result, actual Result) {
145145
http2Conn := CreateHttp2Conn(ctx, true)
146146
defer http2Conn.conn.Close()
@@ -172,7 +172,7 @@ func StreamStatesTestGroup() *TestGroup {
172172

173173
tg.AddTestCase(NewTestCase(
174174
"closed: Sends a DATA frame",
175-
"the endpoint MUST treat this as a stream error (Section 5.4.2) of type STREAM_CLOSED.",
175+
"The endpoint MUST treat this as a stream error (Section 5.4.2) of type STREAM_CLOSED.",
176176
func(ctx *Context) (expected []Result, actual Result) {
177177
http2Conn := CreateHttp2Conn(ctx, true)
178178
defer http2Conn.conn.Close()
@@ -207,7 +207,7 @@ func StreamStatesTestGroup() *TestGroup {
207207

208208
tg.AddTestCase(NewTestCase(
209209
"closed: Sends a HEADERS frame",
210-
"the endpoint MUST treat this as a stream error (Section 5.4.2) of type STREAM_CLOSED.",
210+
"The endpoint MUST treat this as a stream error (Section 5.4.2) of type STREAM_CLOSED.",
211211
func(ctx *Context) (expected []Result, actual Result) {
212212
http2Conn := CreateHttp2Conn(ctx, true)
213213
defer http2Conn.conn.Close()
@@ -242,7 +242,7 @@ func StreamStatesTestGroup() *TestGroup {
242242

243243
tg.AddTestCase(NewTestCase(
244244
"closed: Sends a CONTINUATION frame",
245-
"the endpoint MUST treat this as a stream error (Section 5.4.2) of type STREAM_CLOSED.",
245+
"The endpoint MUST treat this as a stream error (Section 5.4.2) of type STREAM_CLOSED.",
246246
func(ctx *Context) (expected []Result, actual Result) {
247247
http2Conn := CreateHttp2Conn(ctx, true)
248248
defer http2Conn.conn.Close()

6_5.go

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ func SettingsTestGroup() *TestGroup {
1313

1414
tg.AddTestCase(NewTestCase(
1515
"Sends a SETTINGS frame",
16-
"the endpoint MUST sends a SETTINGS frame with ACK.",
16+
"The endpoint MUST sends a SETTINGS frame with ACK.",
1717
func(ctx *Context) (expected []Result, actual Result) {
1818
expected = []Result{
1919
&ResultFrame{http2.FrameSettings, http2.FlagSettingsAck, ErrCodeDefault},
@@ -58,7 +58,7 @@ func SettingsTestGroup() *TestGroup {
5858

5959
tg.AddTestCase(NewTestCase(
6060
"Sends a SETTINGS frame that is not a zero-length with ACK flag",
61-
"the endpoint MUST respond with a connection error of type FRAME_SIZE_ERROR.",
61+
"The endpoint MUST respond with a connection error of type FRAME_SIZE_ERROR.",
6262
func(ctx *Context) (expected []Result, actual Result) {
6363
http2Conn := CreateHttp2Conn(ctx, true)
6464
defer http2Conn.conn.Close()
@@ -72,7 +72,7 @@ func SettingsTestGroup() *TestGroup {
7272

7373
tg.AddTestCase(NewTestCase(
7474
"Sends a SETTINGS frame with the stream identifier that is not 0x0",
75-
"the endpoint MUST respond with a connection error of type PROTOCOL_ERROR.",
75+
"The endpoint MUST respond with a connection error of type PROTOCOL_ERROR.",
7676
func(ctx *Context) (expected []Result, actual Result) {
7777
http2Conn := CreateHttp2Conn(ctx, true)
7878
defer http2Conn.conn.Close()
@@ -87,7 +87,7 @@ func SettingsTestGroup() *TestGroup {
8787

8888
tg.AddTestCase(NewTestCase(
8989
"Sends a SETTINGS frame with a length other than a multiple of 6 octets",
90-
"the endpoint MUST respond with a connection error of type FRAME_SIZE_ERROR.",
90+
"The endpoint MUST respond with a connection error of type FRAME_SIZE_ERROR.",
9191
func(ctx *Context) (expected []Result, actual Result) {
9292
http2Conn := CreateHttp2Conn(ctx, true)
9393
defer http2Conn.conn.Close()
@@ -110,7 +110,7 @@ func DefinedSettingsParametersTestGroup() *TestGroup {
110110

111111
tg.AddTestCase(NewTestCase(
112112
"SETTINGS_ENABLE_PUSH (0x2): Sends the value other than 0 or 1",
113-
"the endpoint MUST respond with a connection error of type PROTOCOL_ERROR.",
113+
"The endpoint MUST respond with a connection error of type PROTOCOL_ERROR.",
114114
func(ctx *Context) (expected []Result, actual Result) {
115115
http2Conn := CreateHttp2Conn(ctx, true)
116116
defer http2Conn.conn.Close()
@@ -125,7 +125,7 @@ func DefinedSettingsParametersTestGroup() *TestGroup {
125125

126126
tg.AddTestCase(NewTestCase(
127127
"SETTINGS_INITIAL_WINDOW_SIZE (0x4): Sends the value above the maximum flow control window size",
128-
"the endpoint MUST respond with a connection error of type FLOW_CONTROL_ERROR.",
128+
"The endpoint MUST respond with a connection error of type FLOW_CONTROL_ERROR.",
129129
func(ctx *Context) (expected []Result, actual Result) {
130130
http2Conn := CreateHttp2Conn(ctx, true)
131131
defer http2Conn.conn.Close()
@@ -140,7 +140,7 @@ func DefinedSettingsParametersTestGroup() *TestGroup {
140140

141141
tg.AddTestCase(NewTestCase(
142142
"SETTINGS_MAX_FRAME_SIZE (0x5): Sends the value below the initial value",
143-
"the endpoint MUST respond with a connection error of type PROTOCOL_ERROR.",
143+
"The endpoint MUST respond with a connection error of type PROTOCOL_ERROR.",
144144
func(ctx *Context) (expected []Result, actual Result) {
145145
http2Conn := CreateHttp2Conn(ctx, true)
146146
defer http2Conn.conn.Close()
@@ -155,7 +155,7 @@ func DefinedSettingsParametersTestGroup() *TestGroup {
155155

156156
tg.AddTestCase(NewTestCase(
157157
"SETTINGS_MAX_FRAME_SIZE (0x5): Sends the value above the maximum allowed frame size",
158-
"the endpoint MUST respond with a connection error of type PROTOCOL_ERROR.",
158+
"The endpoint MUST respond with a connection error of type PROTOCOL_ERROR.",
159159
func(ctx *Context) (expected []Result, actual Result) {
160160
http2Conn := CreateHttp2Conn(ctx, true)
161161
defer http2Conn.conn.Close()

6_7.go

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ func PingTestGroup() *TestGroup {
1313

1414
tg.AddTestCase(NewTestCase(
1515
"Sends a PING frame",
16-
"the endpoint MUST sends a PING frame with ACK.",
16+
"The endpoint MUST sends a PING frame with ACK.",
1717
func(ctx *Context) (expected []Result, actual Result) {
1818
expected = []Result{
1919
&ResultFrame{http2.FramePing, http2.FlagPingAck, ErrCodeDefault},
@@ -58,7 +58,7 @@ func PingTestGroup() *TestGroup {
5858

5959
tg.AddTestCase(NewTestCase(
6060
"Sends a PING frame with the stream identifier that is not 0x0",
61-
"the endpoint MUST respond with a connection error of type PROTOCOL_ERROR.",
61+
"The endpoint MUST respond with a connection error of type PROTOCOL_ERROR.",
6262
func(ctx *Context) (expected []Result, actual Result) {
6363
http2Conn := CreateHttp2Conn(ctx, true)
6464
defer http2Conn.conn.Close()
@@ -73,7 +73,7 @@ func PingTestGroup() *TestGroup {
7373

7474
tg.AddTestCase(NewTestCase(
7575
"Sends a PING frame with a length field value other than 8",
76-
"the endpoint MUST respond with a connection error of type FRAME_SIZE_ERROR.",
76+
"The endpoint MUST respond with a connection error of type FRAME_SIZE_ERROR.",
7777
func(ctx *Context) (expected []Result, actual Result) {
7878
http2Conn := CreateHttp2Conn(ctx, true)
7979
defer http2Conn.conn.Close()

6_8.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ func GoawayTestGroup() *TestGroup {
1010

1111
tg.AddTestCase(NewTestCase(
1212
"Sends a GOAWAY frame with the stream identifier that is not 0x0",
13-
"the endpoint MUST respond with a connection error of type PROTOCOL_ERROR.",
13+
"The endpoint MUST respond with a connection error of type PROTOCOL_ERROR.",
1414
func(ctx *Context) (expected []Result, actual Result) {
1515
http2Conn := CreateHttp2Conn(ctx, true)
1616
defer http2Conn.conn.Close()

6_9.go

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ func WindowUpdateTestGroup() *TestGroup {
1414

1515
tg.AddTestCase(NewTestCase(
1616
"Sends a WINDOW_UPDATE frame with an flow control window increment of 0",
17-
"the endpoint MUST respond with a connection error of type PROTOCOL_ERROR.",
17+
"The endpoint MUST respond with a connection error of type PROTOCOL_ERROR.",
1818
func(ctx *Context) (expected []Result, actual Result) {
1919
http2Conn := CreateHttp2Conn(ctx, true)
2020
defer http2Conn.conn.Close()
@@ -28,7 +28,7 @@ func WindowUpdateTestGroup() *TestGroup {
2828

2929
tg.AddTestCase(NewTestCase(
3030
"Sends a WINDOW_UPDATE frame with an flow control window increment of 0 on a stream",
31-
"the endpoint MUST respond with a stream error of type PROTOCOL_ERROR.",
31+
"The endpoint MUST respond with a stream error of type PROTOCOL_ERROR.",
3232
func(ctx *Context) (expected []Result, actual Result) {
3333
http2Conn := CreateHttp2Conn(ctx, true)
3434
defer http2Conn.conn.Close()
@@ -55,7 +55,7 @@ func WindowUpdateTestGroup() *TestGroup {
5555

5656
tg.AddTestCase(NewTestCase(
5757
"Sends a WINDOW_UPDATE frame with a length other than a multiple of 4 octets",
58-
"the endpoint MUST respond with a connection error of type FRAME_SIZE_ERROR.",
58+
"The endpoint MUST respond with a connection error of type FRAME_SIZE_ERROR.",
5959
func(ctx *Context) (expected []Result, actual Result) {
6060
http2Conn := CreateHttp2Conn(ctx, true)
6161
defer http2Conn.conn.Close()
@@ -79,7 +79,7 @@ func TheFlowControlWindowTestGroup() *TestGroup {
7979

8080
tg.AddTestCase(NewTestCase(
8181
"Sends multiple WINDOW_UPDATE frames on a connection increasing the flow control window to above 2^31-1",
82-
"the endpoint MUST sends a GOAWAY frame with a FLOW_CONTROL_ERROR code.",
82+
"The endpoint MUST sends a GOAWAY frame with a FLOW_CONTROL_ERROR code.",
8383
func(ctx *Context) (expected []Result, actual Result) {
8484
expected = []Result{
8585
&ResultFrame{http2.FrameGoAway, FlagDefault, http2.ErrCodeFlowControl},
@@ -125,7 +125,7 @@ func TheFlowControlWindowTestGroup() *TestGroup {
125125

126126
tg.AddTestCase(NewTestCase(
127127
"Sends multiple WINDOW_UPDATE frames on a stream increasing the flow control window to above 2^31-1",
128-
"the endpoint MUST sends a RST_STREAM with the error code of FLOW_CONTROL_ERROR code.",
128+
"The endpoint MUST sends a RST_STREAM with the error code of FLOW_CONTROL_ERROR code.",
129129
func(ctx *Context) (expected []Result, actual Result) {
130130
expected = []Result{
131131
&ResultFrame{http2.FrameRSTStream, FlagDefault, http2.ErrCodeFlowControl},
@@ -191,7 +191,7 @@ func InitialFlowControlWindowSizeTestGroup() *TestGroup {
191191

192192
tg.AddTestCase(NewTestCase(
193193
"Sends a SETTINGS_INITIAL_WINDOW_SIZE settings with an exceeded maximum window size value",
194-
"the endpoint MUST respond with a connection error of type FLOW_CONTROL_ERROR.",
194+
"The endpoint MUST respond with a connection error of type FLOW_CONTROL_ERROR.",
195195
func(ctx *Context) (expected []Result, actual Result) {
196196
http2Conn := CreateHttp2Conn(ctx, true)
197197
defer http2Conn.conn.Close()

8_1.go

Lines changed: 10 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ func HttpHeaderFieldsTestGroup() *TestGroup {
1818

1919
tg.AddTestCase(NewTestCase(
2020
"Sends a HEADERS frame that contains the header field name in uppercase letters",
21-
"the endpoint MUST respond with a stream error of type PROTOCOL_ERROR.",
21+
"The endpoint MUST respond with a stream error of type PROTOCOL_ERROR.",
2222
func(ctx *Context) (expected []Result, actual Result) {
2323
http2Conn := CreateHttp2Conn(ctx, true)
2424
defer http2Conn.conn.Close()
@@ -56,7 +56,7 @@ func PseudoHeaderFieldsTestGroup() *TestGroup {
5656

5757
tg.AddTestCase(NewTestCase(
5858
"Sends a HEADERS frame that contains the pseudo-header field defined for response",
59-
"the endpoint MUST respond with a stream error of type PROTOCOL_ERROR.",
59+
"The endpoint MUST respond with a stream error of type PROTOCOL_ERROR.",
6060
func(ctx *Context) (expected []Result, actual Result) {
6161
http2Conn := CreateHttp2Conn(ctx, true)
6262
defer http2Conn.conn.Close()
@@ -83,7 +83,7 @@ func PseudoHeaderFieldsTestGroup() *TestGroup {
8383

8484
tg.AddTestCase(NewTestCase(
8585
"Sends a HEADERS frame that contains the invalid pseudo-header field",
86-
"the endpoint MUST respond with a stream error of type PROTOCOL_ERROR.",
86+
"The endpoint MUST respond with a stream error of type PROTOCOL_ERROR.",
8787
func(ctx *Context) (expected []Result, actual Result) {
8888
http2Conn := CreateHttp2Conn(ctx, true)
8989
defer http2Conn.conn.Close()
@@ -110,7 +110,7 @@ func PseudoHeaderFieldsTestGroup() *TestGroup {
110110

111111
tg.AddTestCase(NewTestCase(
112112
"Sends a HEADERS frame that contains a pseudo-header field that appears in a header block after a regular header field",
113-
"the endpoint MUST respond with a stream error of type PROTOCOL_ERROR.",
113+
"The endpoint MUST respond with a stream error of type PROTOCOL_ERROR.",
114114
func(ctx *Context) (expected []Result, actual Result) {
115115
http2Conn := CreateHttp2Conn(ctx, true)
116116
defer http2Conn.conn.Close()
@@ -143,7 +143,7 @@ func ConnectionSpecificHeaderFieldsTestGroup() *TestGroup {
143143

144144
tg.AddTestCase(NewTestCase(
145145
"Sends a HEADERS frame that contains the connection-specific header field",
146-
"the endpoint MUST respond with a stream error of type PROTOCOL_ERROR.",
146+
"The endpoint MUST respond with a stream error of type PROTOCOL_ERROR.",
147147
func(ctx *Context) (expected []Result, actual Result) {
148148
http2Conn := CreateHttp2Conn(ctx, true)
149149
defer http2Conn.conn.Close()
@@ -170,7 +170,7 @@ func ConnectionSpecificHeaderFieldsTestGroup() *TestGroup {
170170

171171
tg.AddTestCase(NewTestCase(
172172
"Sends a HEADERS frame that contains the TE header field that contain any value other than \"trailers\"",
173-
"the endpoint MUST respond with a stream error of type PROTOCOL_ERROR.",
173+
"The endpoint MUST respond with a stream error of type PROTOCOL_ERROR.",
174174
func(ctx *Context) (expected []Result, actual Result) {
175175
http2Conn := CreateHttp2Conn(ctx, true)
176176
defer http2Conn.conn.Close()
@@ -204,7 +204,7 @@ func RequestPseudoHeaderFieldsTestGroup() *TestGroup {
204204

205205
tg.AddTestCase(NewTestCase(
206206
"Sends a HEADERS frame that is omitted mandatory pseudo-header fields",
207-
"the endpoint MUST respond with a stream error of type PROTOCOL_ERROR.",
207+
"The endpoint MUST respond with a stream error of type PROTOCOL_ERROR.",
208208
func(ctx *Context) (expected []Result, actual Result) {
209209
http2Conn := CreateHttp2Conn(ctx, true)
210210
defer http2Conn.conn.Close()
@@ -229,7 +229,7 @@ func RequestPseudoHeaderFieldsTestGroup() *TestGroup {
229229

230230
tg.AddTestCase(NewTestCase(
231231
"Sends a HEADERS frame containing more than one pseudo-header fields with the same name",
232-
"the endpoint MUST respond with a stream error of type PROTOCOL_ERROR.",
232+
"The endpoint MUST respond with a stream error of type PROTOCOL_ERROR.",
233233
func(ctx *Context) (expected []Result, actual Result) {
234234
http2Conn := CreateHttp2Conn(ctx, true)
235235
defer http2Conn.conn.Close()
@@ -265,7 +265,7 @@ func MalformedRequestsAndResponsesTestGroup() *TestGroup {
265265

266266
tg.AddTestCase(NewTestCase(
267267
"Sends a HEADERS frame that contains the \"content-length\" header field which does not equal the sum of the DATA frame payload lengths",
268-
"the endpoint MUST respond with a stream error of type PROTOCOL_ERROR.",
268+
"The endpoint MUST respond with a stream error of type PROTOCOL_ERROR.",
269269
func(ctx *Context) (expected []Result, actual Result) {
270270
http2Conn := CreateHttp2Conn(ctx, true)
271271
defer http2Conn.conn.Close()
@@ -293,7 +293,7 @@ func MalformedRequestsAndResponsesTestGroup() *TestGroup {
293293

294294
tg.AddTestCase(NewTestCase(
295295
"Sends a HEADERS frame that contains the \"content-length\" header field which does not equal the sum of the multiple DATA frame payload lengths",
296-
"the endpoint MUST respond with a stream error of type PROTOCOL_ERROR.",
296+
"The endpoint MUST respond with a stream error of type PROTOCOL_ERROR.",
297297
func(ctx *Context) (expected []Result, actual Result) {
298298
http2Conn := CreateHttp2Conn(ctx, true)
299299
defer http2Conn.conn.Close()

8_2.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ func ServerPushTestGroup() *TestGroup {
1111

1212
tg.AddTestCase(NewTestCase(
1313
"Sends a PUSH_PROMISE frame",
14-
"the endpoint MUST treat the receipt of a PUSH_PROMISE frame as a connection error of type PROTOCOL_ERROR.",
14+
"The endpoint MUST treat the receipt of a PUSH_PROMISE frame as a connection error of type PROTOCOL_ERROR.",
1515
func(ctx *Context) (expected []Result, actual Result) {
1616
http2Conn := CreateHttp2Conn(ctx, true)
1717
defer http2Conn.conn.Close()

0 commit comments

Comments
 (0)