MCPcopy Create free account
hub / github.com/pydio/cells / TestNodesClient

Method TestNodesClient

data/source/test/handler.go:323–333  ·  view source on GitHub ↗
(ctx context.Context)

Source from the content-addressed store, hash-verified

321}
322
323func (h *Handler) TestNodesClient(ctx context.Context) (*test.TestResult, error) {
324 res := &test.TestResult{}
325
326 cl := compose.PathClient(nodes.AsAdmin())
327 err := cl.ListNodesWithCallback(ctx, &tree.ListNodesRequest{Node: &tree.Node{Path: "pydiods1"}}, func(ctx context.Context, node *tree.Node, err error) error {
328 res.Log("Got node", node.Zap())
329 return nil
330 }, false)
331
332 return res, err
333}

Callers 1

initFunction · 0.95

Calls 5

LogMethod · 0.95
PathClientFunction · 0.92
AsAdminFunction · 0.92
ListNodesWithCallbackMethod · 0.65
ZapMethod · 0.65

Tested by

no test coverage detected