Files
tendermint/tools/panic/callgraph/callgraph_test.go
2022-07-25 06:23:42 -07:00

20 lines
396 B
Go

package callgraph_test
import (
"testing"
"github.com/tendermint/tendermint/tools/panic/callgraph"
)
func TestStub(t *testing.T) {
g := callgraph.New()
g.ImportWithTests("github.com/tendermint/tendermint/internal/consensus")
if err := g.Process(func(cg *callgraph.Triple) {
if cg.Target.Name == "panic" {
t.Logf("Panic call at %v", cg.Site)
}
}); err != nil {
t.Fatal(err)
}
}