MCPcopy
hub / github.com/yusing/godoxy / NewTestEntrypoint

Function NewTestEntrypoint

internal/entrypoint/entrypoint.go:58–65  ·  view source on GitHub ↗
(tb testing.TB, cfg *Config)

Source from the content-addressed store, hash-verified

56var emptyCfg Config
57
58func NewTestEntrypoint(tb testing.TB, cfg *Config) *Entrypoint {
59 tb.Helper()
60
61 testTask := task.GetTestTask(tb)
62 ep := NewEntrypoint(testTask, cfg)
63 entrypoint.SetCtx(testTask, ep)
64 return ep
65}
66
67func NewEntrypoint(parent task.Parent, cfg *Config) *Entrypoint {
68 if cfg == nil {

Calls 1

NewEntrypointFunction · 0.85