trufflehog/pkg/sources/sources_test.go
ahrav d3d551d24e
[chore] - Update Chunk struct comment (#2317)
* update comment to include information on the importance of struct ordering

* more cute tricks

* remove cute tricks
2024-01-20 13:31:27 -08:00

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")
}