
This moves the transformation pass to the right location, and adds tests to see that it actually works correctly.
10 строки
164 Б
Go
10 строки
164 Б
Go
package transform
|
|
|
|
import (
|
|
"testing"
|
|
)
|
|
|
|
func TestReplacePanicsWithTrap(t *testing.T) {
|
|
t.Parallel()
|
|
testTransform(t, "testdata/panic", ReplacePanicsWithTrap)
|
|
}
|