package test
import "github.com/ydb-platform/ydb-go-sdk/v3/cmd/gtrace/internal/test"
Index ¶
- func WithAnotherBuildTagTrace(ctx context.Context, t AnotherBuildTagTrace) context.Context
- func WithBuildTagTrace(ctx context.Context, t BuildTagTrace) context.Context
- func WithTrace(ctx context.Context, t Trace) context.Context
- func WithTraceNoShortcut(ctx context.Context, t TraceNoShortcut) context.Context
- type AnotherBuildTagTrace
- func ContextAnotherBuildTagTrace(ctx context.Context) AnotherBuildTagTrace
- func (t AnotherBuildTagTrace) Compose(x AnotherBuildTagTrace) (ret AnotherBuildTagTrace)
- type BuildTagTrace
- func ContextBuildTagTrace(ctx context.Context) BuildTagTrace
- func (t BuildTagTrace) Compose(x BuildTagTrace) (ret BuildTagTrace)
- type ConditionalBuildTrace
- type Embedded
- type ReturnedTrace
- type ShortcutPerFieldTrace
- type Trace
- type TraceActionDone
- type TraceActionStart
- type TraceNoShortcut
- func ContextTraceNoShortcut(ctx context.Context) TraceNoShortcut
- func (t TraceNoShortcut) Compose(x TraceNoShortcut) (ret TraceNoShortcut)
- type TraceReturningTrace
- type TraceReturningTraceTags
- type Type
Functions ¶
func WithAnotherBuildTagTrace ¶
func WithAnotherBuildTagTrace(ctx context.Context, t AnotherBuildTagTrace) context.Context
WithAnotherBuildTagTrace returns context which has associated AnotherBuildTagTrace with it.
func WithBuildTagTrace ¶
func WithBuildTagTrace(ctx context.Context, t BuildTagTrace) context.Context
WithBuildTagTrace returns context which has associated BuildTagTrace with it.
func WithTrace ¶
WithTrace returns context which has associated Trace with it.
func WithTraceNoShortcut ¶
func WithTraceNoShortcut(ctx context.Context, t TraceNoShortcut) context.Context
WithTraceNoShortcut returns context which has associated TraceNoShortcut with it.
Types ¶
type AnotherBuildTagTrace ¶
type AnotherBuildTagTrace struct { OnSomethingA func() func() OnSomethingB func(int8, int16) func(int32, int64) OnSomethingC func(Type) func(Type) }
func ContextAnotherBuildTagTrace ¶
func ContextAnotherBuildTagTrace(ctx context.Context) AnotherBuildTagTrace
ContextAnotherBuildTagTrace returns AnotherBuildTagTrace associated with ctx. If there is no AnotherBuildTagTrace associated with ctx then zero value of AnotherBuildTagTrace is returned.
func (AnotherBuildTagTrace) Compose ¶
func (t AnotherBuildTagTrace) Compose(x AnotherBuildTagTrace) (ret AnotherBuildTagTrace)
Compose returns a new AnotherBuildTagTrace which has functional fields composed both from t and x.
type BuildTagTrace ¶
type BuildTagTrace struct { OnSomethingA func() func() OnSomethingB func(int8, int16) func(int32, int64) OnSomethingC func(Type) func(Type) }
func ContextBuildTagTrace ¶
func ContextBuildTagTrace(ctx context.Context) BuildTagTrace
ContextBuildTagTrace returns BuildTagTrace associated with ctx. If there is no BuildTagTrace associated with ctx then zero value of BuildTagTrace is returned.
func (BuildTagTrace) Compose ¶
func (t BuildTagTrace) Compose(x BuildTagTrace) (ret BuildTagTrace)
Compose returns a new BuildTagTrace which has functional fields composed both from t and x.
type ConditionalBuildTrace ¶
type ConditionalBuildTrace struct {
OnSomething func()
}
func (ConditionalBuildTrace) Compose ¶
func (t ConditionalBuildTrace) Compose(x ConditionalBuildTrace) (ret ConditionalBuildTrace)
Compose returns a new ConditionalBuildTrace which has functional fields composed both from t and x.
type Embedded ¶
type Embedded struct{}
type ReturnedTrace ¶
type ReturnedTrace struct { OnSomething func(a, b int) OnFoo func(_ int, _ int) OnBar func(_, _ int) OnBaz func(int, int) }
func (ReturnedTrace) Compose ¶
func (t ReturnedTrace) Compose(x ReturnedTrace) (ret ReturnedTrace)
Compose returns a new ReturnedTrace which has functional fields composed both from t and x.
type ShortcutPerFieldTrace ¶
type ShortcutPerFieldTrace struct { //gtrace:set shortcut OnFoo func() OnBar func() }
func (ShortcutPerFieldTrace) Compose ¶
func (t ShortcutPerFieldTrace) Compose(x ShortcutPerFieldTrace) (ret ShortcutPerFieldTrace)
Compose returns a new ShortcutPerFieldTrace which has functional fields composed both from t and x.
type Trace ¶
type Trace struct { OnTest func(string) func(string) OnAction func(TraceActionStart) func(TraceActionDone) OnActionPtr func(*TraceActionStart) func(*TraceActionDone) OnSomething0 func(int8) func(int16) func(int32) func(int64) OnSomething1 func(int8, int16) func(int32, int64) OnSomething2 func(Type) func(Type) func(Type) OnAnother func() OnAnother1 func(named string) // Not supported signatures: Skipped0 func() string Skipped1 func() (func(), func()) }
func ContextTrace ¶
ContextTrace returns Trace associated with ctx. If there is no Trace associated with ctx then zero value of Trace is returned.
func (Trace) Compose ¶
Compose returns a new Trace which has functional fields composed both from t and x.
type TraceActionDone ¶
type TraceActionDone struct { Error error }
type TraceActionStart ¶
type TraceNoShortcut ¶
NOTE: must compile without unused imports error.
func ContextTraceNoShortcut ¶
func ContextTraceNoShortcut(ctx context.Context) TraceNoShortcut
ContextTraceNoShortcut returns TraceNoShortcut associated with ctx. If there is no TraceNoShortcut associated with ctx then zero value of TraceNoShortcut is returned.
func (TraceNoShortcut) Compose ¶
func (t TraceNoShortcut) Compose(x TraceNoShortcut) (ret TraceNoShortcut)
Compose returns a new TraceNoShortcut which has functional fields composed both from t and x.
type TraceReturningTrace ¶
type TraceReturningTrace struct { OnReturnedTrace func() ReturnedTrace }
func (TraceReturningTrace) Compose ¶
func (t TraceReturningTrace) Compose(x TraceReturningTrace) (ret TraceReturningTrace)
Compose returns a new TraceReturningTrace which has functional fields composed both from t and x.
type TraceReturningTraceTags ¶
type TraceReturningTraceTags struct { OnReturnedTrace func() ReturnedTrace }
func (TraceReturningTraceTags) Compose ¶
func (t TraceReturningTraceTags) Compose(x TraceReturningTraceTags) (ret TraceReturningTraceTags)
Compose returns a new TraceReturningTraceTags which has functional fields composed both from t and x.
type Type ¶
type Type struct { Embedded String string Integer int Boolean bool Error error Reader bytes.Reader }
Source Files ¶
test.go test_darwin_amd64.go test_gtrace.go test_gtrace_darwin_amd64.go test_imports.go test_imports_gtrace.go test_returned.go test_returned_gtrace.go test_returned_tags.go test_returned_tags_gtrace_stub.go test_shortcut.go test_shortcut_gtrace.go test_tags.go test_tags_dup.go test_tags_dup_gtrace_stub.go test_tags_gtrace_stub.go types.go
- Version
- v3.16.12-rc2
- Published
- Mar 30, 2022
- Platform
- darwin/amd64
- Imports
- 3 packages
- Last checked
- 3 minutes ago –
Tools for package owners.