Skip to content

Commit 3add4df

Browse files
committed
msgpack: move ptrInt and ptrUint to msgpack_test.go
1 parent 4ed7dd9 commit 3add4df

File tree

2 files changed

+8
-8
lines changed

2 files changed

+8
-8
lines changed

msgpack/decode_test.go

Lines changed: 0 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -34,14 +34,6 @@ type testDecArrayStruct struct {
3434
S string
3535
}
3636

37-
func ptrInt(i int) *int {
38-
return &i
39-
}
40-
41-
func ptrUint(i uint) *uint {
42-
return &i
43-
}
44-
4537
func TestDecode(t *testing.T) {
4638
t.Parallel()
4739

msgpack/msgpack_test.go

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -43,6 +43,14 @@ var testExtensionMap = ExtensionMap{
4343
1: func(data []byte) (interface{}, error) { return testExtension1{data}, nil },
4444
}
4545

46+
func ptrInt(i int) *int {
47+
return &i
48+
}
49+
50+
func ptrUint(i uint) *uint {
51+
return &i
52+
}
53+
4654
type testReader struct {
4755
p []byte
4856
pos int

0 commit comments

Comments
 (0)