feat: support direct bytes for file upload (#568)

* feat: support direct bytes for file upload

* add test for errors

* add coverage
This commit is contained in:
Donnie Flood
2023-11-15 09:08:48 -07:00
committed by GitHub
parent fe67abb97e
commit 71848ccf69
4 changed files with 115 additions and 0 deletions

View File

@@ -247,6 +247,9 @@ func TestClientReturnsRequestBuilderErrors(t *testing.T) {
{"CreateImage", func() (any, error) {
return client.CreateImage(ctx, ImageRequest{})
}},
{"CreateFileBytes", func() (any, error) {
return client.CreateFileBytes(ctx, FileBytesRequest{})
}},
{"DeleteFile", func() (any, error) {
return nil, client.DeleteFile(ctx, "")
}},