MCPcopy
hub / github.com/rclone/rclone / putConnection

Method putConnection

backend/smb/filepool_test.go:24–29  ·  view source on GitHub ↗
(pc **conn, err error)

Source from the content-addressed store, hash-verified

22}
23
24func (m *mockFs) putConnection(pc **conn, err error) {
25 m.mu.Lock()
26 defer m.mu.Unlock()
27 m.putConnectionCalled = true
28 m.putConnectionErr = err
29}
30
31func (m *mockFs) getConnection(ctx context.Context, share string) (*conn, error) {
32 m.mu.Lock()

Callers

nothing calls this directly

Calls 2

LockMethod · 0.65
UnlockMethod · 0.65

Tested by

no test coverage detected