TestErrAdvance
This commit is contained in:
@@ -25,14 +25,24 @@ import (
|
|||||||
"golang.org/x/tools/go/ssa"
|
"golang.org/x/tools/go/ssa"
|
||||||
)
|
)
|
||||||
|
|
||||||
|
func TestErrAdvance(t *testing.T) {
|
||||||
|
defer func() {
|
||||||
|
if r := recover(); r == nil {
|
||||||
|
t.Fatal("advance: no error?")
|
||||||
|
}
|
||||||
|
}()
|
||||||
|
var ctx context
|
||||||
|
ctx.advance(nil, nil)
|
||||||
|
}
|
||||||
|
|
||||||
func TestErrAlloca(t *testing.T) {
|
func TestErrAlloca(t *testing.T) {
|
||||||
defer func() {
|
defer func() {
|
||||||
if r := recover(); r == nil {
|
if r := recover(); r == nil {
|
||||||
t.Fatal("alloca: no error?")
|
t.Fatal("alloca: no error?")
|
||||||
}
|
}
|
||||||
}()
|
}()
|
||||||
var ctz context
|
var ctx context
|
||||||
ctz.alloca(nil, nil)
|
ctx.alloca(nil, nil)
|
||||||
}
|
}
|
||||||
|
|
||||||
func TestCStrNoArgs(t *testing.T) {
|
func TestCStrNoArgs(t *testing.T) {
|
||||||
|
|||||||
Reference in New Issue
Block a user