Skip to content
This repository was archived by the owner on May 15, 2023. It is now read-only.

Comments

created mock_gcs.go#64

Open
alicjakwie wants to merge 16 commits intomasterfrom
alicja/mock
Open

created mock_gcs.go#64
alicjakwie wants to merge 16 commits intomasterfrom
alicja/mock

Conversation

@alicjakwie
Copy link
Contributor

Moved the storage mocking components of create_file_test to a shared file (mock_gcs.go)
Exported the necessary functions for create_file_test

alicjakwie and others added 6 commits September 15, 2020 15:04
GCS and the CreateFile function takes the right arguments
moved the code responsible for mocking gcs to a different file (mock_gcs.go)
Restructured packages
Implemented table driven tests for  TestFileName
All tests pass
Moved the storage mocking components of create_file_test to a shared file (mock_gcs.go) 
Exported the necessary functions for create_file_test
@alicjakwie alicjakwie added the GCS label Sep 15, 2020
@alicjakwie alicjakwie added this to the MVP milestone Sep 15, 2020
@alicjakwie alicjakwie self-assigned this Sep 15, 2020
return &fakeClient{buckets: map[string]*fakeBucket{}}
}

func (o fakeObjectHandle) NewWriter(context.Context) stiface.Writer {
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Recommend using pointers for receivers in general.
Although this method doesn't modify the receiver, I would still use a pointer, as it's cheaper.

alicjakwie and others added 3 commits September 16, 2020 12:37
Co-authored-by: Evan Spendlove <43849980+evanSpendlove@users.noreply.github.com>
Co-authored-by: Evan Spendlove <43849980+evanSpendlove@users.noreply.github.com>
Base automatically changed from createfile to master September 18, 2020 19:43
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants