(t *testing.T, client sharedLinkClient)
| 130 | } |
| 131 | |
| 132 | func 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 | |
| 140 | func TestSharedLinkCreateRequiresExactlyOnePath(t *testing.T) { |
| 141 | tests := []struct { |
no outgoing calls
no test coverage detected