|
1 |
| -// Copyright 2020 The Go Authors. All rights reserved. |
| 1 | +// Copyright 2021 The Go Authors. All rights reserved. |
2 | 2 | // Use of this source code is governed by a BSD-style
|
3 | 3 | // license that can be found in the LICENSE file.
|
4 | 4 |
|
@@ -224,8 +224,8 @@ func FuzzParse(f *testing.F) {
|
224 | 224 | })
|
225 | 225 | }
|
226 | 226 |
|
227 |
| -// checkTextMarshaller checks that x's MarshalText and UnmarshalText functions round trip correctly. |
228 |
| -func checkTextMarshaller(t *testing.T, x encoding.TextMarshaler) { |
| 227 | +// checkTextMarshaler checks that x's MarshalText and UnmarshalText functions round trip correctly. |
| 228 | +func checkTextMarshaler(t *testing.T, x encoding.TextMarshaler) { |
229 | 229 | buf, err := x.MarshalText()
|
230 | 230 | if err == nil {
|
231 | 231 | return
|
@@ -255,8 +255,8 @@ func checkTextMarshaller(t *testing.T, x encoding.TextMarshaler) {
|
255 | 255 | }
|
256 | 256 | }
|
257 | 257 |
|
258 |
| -// checkBinaryMarshaller checks that x's MarshalText and UnmarshalText functions round trip correctly. |
259 |
| -func checkBinaryMarshaller(t *testing.T, x encoding.BinaryMarshaler) { |
| 258 | +// checkBinaryMarshaler checks that x's MarshalText and UnmarshalText functions round trip correctly. |
| 259 | +func checkBinaryMarshaler(t *testing.T, x encoding.BinaryMarshaler) { |
260 | 260 | buf, err := x.MarshalBinary()
|
261 | 261 | if err == nil {
|
262 | 262 | return
|
@@ -358,8 +358,8 @@ func checkStringParseRoundTrip[P netipTypeCmp](t *testing.T, x P, parse func(str
|
358 | 358 | }
|
359 | 359 |
|
360 | 360 | func checkEncoding(t *testing.T, x netipType) {
|
361 |
| - checkTextMarshaller(t, x) |
362 |
| - checkBinaryMarshaller(t, x) |
| 361 | + checkTextMarshaler(t, x) |
| 362 | + checkBinaryMarshaler(t, x) |
363 | 363 | checkTextMarshalMatchesString(t, x)
|
364 | 364 | if am, ok := x.(appendMarshaler); ok {
|
365 | 365 | checkTextMarshalMatchesAppendTo(t, am)
|
|
0 commit comments