mirror of
https://github.com/OpenListTeam/OpenList.git
synced 2026-05-07 15:49:49 +08:00
15 lines
302 B
Go
15 lines
302 B
Go
package alloc_test // import "github.com/ncruces/go-sqlite3/internal/alloc"
|
|
|
|
import (
|
|
"math"
|
|
"testing"
|
|
|
|
"github.com/OpenListTeam/OpenList/v4/internal/alloc"
|
|
)
|
|
|
|
func TestVirtual(t *testing.T) {
|
|
defer func() { _ = recover() }()
|
|
alloc.NewMemory(math.MaxInt+2, math.MaxInt+2)
|
|
t.Error("want panic")
|
|
}
|