1
0
mirror of https://github.com/go-kratos/kratos.git synced 2025-01-26 03:52:12 +02:00
kratos/pkg/net/trace/mocktrace/mocktrace_test.go

25 lines
444 B
Go

// 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("")
}