mirror of
https://github.com/trufflesecurity/trufflehog.git
synced 2024-11-10 15:14:38 +00:00
15 lines
305 B
Go
15 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")
|
||
|
}
|