github.com/mattn/anko@v0.1.10/vm/vm_Go19_test.go (about) 1 // +build go1.9 2 3 package vm 4 5 import ( 6 "fmt" 7 "testing" 8 ) 9 10 func TestMakeGo19(t *testing.T) { 11 t.Parallel() 12 13 tests := []Test{ 14 {Script: `make(struct { a int64 })`, RunError: fmt.Errorf("reflect.StructOf: field \"a\" is unexported but missing PkgPath")}, 15 } 16 runTests(t, tests, nil, &Options{Debug: false}) 17 }