MCPcopy Create free account
hub / github.com/dropbox/dbxcli / stubSharedLinkClient

Function stubSharedLinkClient

cmd/share_create_link_test.go:132–138  ·  view source on GitHub ↗
(t *testing.T, client sharedLinkClient)

Source from the content-addressed store, hash-verified

130}
131
132func stubSharedLinkClient(t *testing.T, client sharedLinkClient) {
133 t.Helper()
134
135 orig := newSharedLinkClient
136 newSharedLinkClient = func(_ dropbox.Config) sharedLinkClient { return client }
137 t.Cleanup(func() { newSharedLinkClient = orig })
138}
139
140func TestSharedLinkCreateRequiresExactlyOnePath(t *testing.T) {
141 tests := []struct {

Calls

no outgoing calls

Tested by

no test coverage detected