Skip to content

Commit

Permalink
add test
Browse files Browse the repository at this point in the history
  • Loading branch information
ahrav committed Jan 19, 2024
1 parent ae96273 commit 5fe1d72
Showing 1 changed file with 14 additions and 0 deletions.
14 changes: 14 additions & 0 deletions pkg/sources/sources_test.go
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
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")
}

0 comments on commit 5fe1d72

Please sign in to comment.