You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 
kratos/pkg/net/trace/mocktrace/mocktrace_test.go

24 lines
444 B

// Package mocktrace this ut just make ci happay.
package mocktrace
import (
"fmt"
"testing"
)
func TestMockTrace(t *testing.T) {
mocktrace := &MockTrace{}
mocktrace.Inject(nil, nil, nil)
mocktrace.Extract(nil, nil)
root := mocktrace.New("test")
root.Fork("", "")
root.Follow("", "")
root.Finish(nil)
err := fmt.Errorf("test")
root.Finish(&err)
root.SetTag()
root.SetLog()
root.Visit(func(k, v string) {})
root.SetTitle("")
}