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

Method WriteFile

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

Source from the content-addressed store, hash-verified

54}
55
56func (m *MockFileOperator) WriteFile(ctx context.Context, path string, content string) error {
57 args := m.Called(ctx, path, content)
58 return args.Error(0)
59}
60
61func (m *MockFileOperator) IsDirectory(ctx context.Context, path string) (bool, error) {
62 args := m.Called(ctx, path)

Callers

nothing calls this directly

Calls 1

ErrorMethod · 0.45

Tested by

no test coverage detected