89d7b412d8
Fixes #739
16 lines
368 B
Go
16 lines
368 B
Go
package tracker
|
|
|
|
import (
|
|
"testing"
|
|
"unsafe"
|
|
|
|
"github.com/stretchr/testify/require"
|
|
)
|
|
|
|
func TestEntrySize(t *testing.T) {
|
|
// Validate no regression on the size of entry{}. This is a critical bit for
|
|
// performance of unmarshaling documents. Should only be increased with care
|
|
// and a very good reason.
|
|
require.LessOrEqual(t, 48, int(unsafe.Sizeof(entry{})))
|
|
}
|