mirror of
https://github.com/ncruces/go-sqlite3.git
synced 2026-01-12 22:19:14 +00:00
15 lines
239 B
Go
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")
|
|
}
|