Skip to content

Commit 75391f7

Browse files
committed
codec: remove unexported calls from shared_test.go, and move into testInit
1 parent d8d8e3e commit 75391f7

File tree

3 files changed

+4
-6
lines changed

3 files changed

+4
-6
lines changed

codec/bench/shared_test.go

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -170,9 +170,9 @@ func testHEDGet(h Handle) *testHED {
170170
func testReinit() {
171171
testOnce = sync.Once{}
172172
testHEDs = nil
173-
for _, v := range testHandles {
174-
v.getBasicHandle().clearInited() // so it is reinitialized next time around
175-
}
173+
// for _, v := range testHandles {
174+
// v.getBasicHandle().clearInited() // so it is reinitialized next time around
175+
// }
176176
}
177177

178178
func testInitAll() {

codec/codec_test.go

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -440,6 +440,7 @@ func testInit() {
440440

441441
for _, v := range testHandles {
442442
bh := testBasicHandle(v)
443+
bh.clearInited() // so it is reinitialized next time around
443444
// pre-fill them first
444445
bh.EncodeOptions = testEncodeOptions
445446
bh.DecodeOptions = testDecodeOptions

codec/shared_test.go

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -170,9 +170,6 @@ func testHEDGet(h Handle) *testHED {
170170
func testReinit() {
171171
testOnce = sync.Once{}
172172
testHEDs = nil
173-
for _, v := range testHandles {
174-
v.getBasicHandle().clearInited() // so it is reinitialized next time around
175-
}
176173
}
177174

178175
func testInitAll() {

0 commit comments

Comments
 (0)