Files
sqlite3/internal/alloc/alloc_test.go
2024-10-17 13:04:23 +01:00

15 lines
239 B
Go

package alloc_test
import (
"math"
"testing"
"github.com/ncruces/go-sqlite3/internal/alloc"
)
func TestVirtual(t *testing.T) {
defer func() { _ = recover() }()
alloc.NewMemory(math.MaxInt+2, math.MaxInt+2)
t.Error("want panic")
}