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.
25 lines
444 B
25 lines
444 B
6 years ago
|
// 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("")
|
||
|
}
|