This commit is contained in:
Nuno Cruces
2024-07-20 01:42:50 +01:00
parent b289fca3ca
commit 28f225b32e
7 changed files with 51 additions and 7 deletions

View File

@@ -0,0 +1,14 @@
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")
}