MCPcopy Create free account
hub / github.com/cloudwego/eino-ext / Exists

Method Exists

components/tool/commandline/editor_test.go:66–69  ·  view source on GitHub ↗
(ctx context.Context, path string)

Source from the content-addressed store, hash-verified

64}
65
66func (m *MockFileOperator) Exists(ctx context.Context, path string) (bool, error) {
67 args := m.Called(ctx, path)
68 return args.Bool(0), args.Error(1)
69}
70func (m *MockFileOperator) RunCommand(ctx context.Context, command []string) (*CommandOutput, error) {
71 args := m.Called(ctx, command)
72 if args.Get(0) == nil {

Callers

nothing calls this directly

Calls 1

ErrorMethod · 0.45

Tested by

no test coverage detected