mirror of
https://github.com/Icinga/icingadb.git
synced 2026-05-28 04:35:54 -04:00
Don't "misuse" unsafe.Pointer
This commit is contained in:
parent
0e8ab58b50
commit
cabcd458ff
1 changed files with 1 additions and 2 deletions
|
|
@ -5,7 +5,6 @@ import (
|
|||
"github.com/icinga/icingadb/pkg/types"
|
||||
"io"
|
||||
"testing"
|
||||
"unsafe"
|
||||
)
|
||||
|
||||
// limitedWriter allows writing a specific amount of data.
|
||||
|
|
@ -150,7 +149,7 @@ func TestPackAny(t *testing.T) {
|
|||
assertPackAnyPanic(t, make(chan struct{}, 0), 0)
|
||||
assertPackAnyPanic(t, func() {}, 0)
|
||||
assertPackAnyPanic(t, struct{}{}, 0)
|
||||
assertPackAnyPanic(t, unsafe.Pointer(uintptr(0)), 0)
|
||||
assertPackAnyPanic(t, uintptr(0), 0)
|
||||
}
|
||||
|
||||
func assertPackAny(t *testing.T, in interface{}, out []byte) {
|
||||
|
|
|
|||
Loading…
Reference in a new issue