Files
sqlite3/internal/alloc/alloc_test.go

15 lines
237 B
Go
Raw Normal View History

2024-07-20 01:42:50 +01:00
package alloc_test
import (
"math"
"testing"
"github.com/ncruces/go-sqlite3/internal/alloc"
)
func TestVirtual(t *testing.T) {
defer func() { _ = recover() }()
alloc.Virtual(math.MaxInt+2, math.MaxInt+2)
t.Error("want panic")
}