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