MCPcopy Index your code
hub / github.com/wavetermdev/waveterm / getTestContext

Function getTestContext

pkg/vdom/vdom_test.go:70–76  ·  view source on GitHub ↗
(ctx context.Context)

Source from the content-addressed store, hash-verified

68}
69
70func getTestContext(ctx context.Context) *TestContext {
71 val := ctx.Value(renderContextKey)
72 if val == nil {
73 return nil
74 }
75 return val.(*TestContext)
76}
77
78func Test1(t *testing.T) {
79 log.Printf("hello!\n")

Callers 1

ButtonFunction · 0.85

Calls 1

ValueMethod · 0.80

Tested by

no test coverage detected