MCPcopy Create free account
hub / github.com/0xUnixIO/pulse / runAgent

Function runAgent

internal/nodeagent/agent_test.go:153–158  ·  view source on GitHub ↗
(t *testing.T, ctx context.Context, cfg Config)

Source from the content-addressed store, hash-verified

151}
152
153func runAgent(t *testing.T, ctx context.Context, cfg Config) <-chan error {
154 t.Helper()
155 done := make(chan error, 1)
156 go func() { done <- Run(ctx, cfg) }()
157 return done
158}
159
160// 1) 成功连接:mock server 收到 hello。
161func TestAgent_HelloOnConnect(t *testing.T) {

Callers 7

TestAgent_HelloOnConnectFunction · 0.70
TestAgent_CancelInflightFunction · 0.70
TestAgent_ReconnectFunction · 0.70
TestAgent_CtxCancelFunction · 0.70
TestAgent_UsagePushAckFunction · 0.70

Calls 1

RunFunction · 0.70

Tested by

no test coverage detected