mirror of
https://github.com/trufflesecurity/trufflehog.git
synced 2024-11-14 00:47:21 +00:00
d3d551d24e
* update comment to include information on the importance of struct ordering * more cute tricks * remove cute tricks
14 lines
305 B
Go
14 lines
305 B
Go
package sources
|
|
|
|
import (
|
|
"testing"
|
|
"unsafe"
|
|
|
|
"github.com/stretchr/testify/assert"
|
|
)
|
|
|
|
// TestChunkSize ensures that the Chunk struct does not exceed 80 bytes.
|
|
func TestChunkSize(t *testing.T) {
|
|
t.Parallel()
|
|
assert.Equal(t, unsafe.Sizeof(Chunk{}), uintptr(80), "Chunk struct size exceeds 80 bytes")
|
|
}
|