mirror of
https://github.com/tendermint/tendermint.git
synced 2026-02-03 10:32:05 +00:00
20 lines
396 B
Go
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)
|
|
}
|
|
}
|