feat: get image blob in backend (#495)

* feat: get image blob in backend

* chore: update
This commit is contained in:
boojack
2022-11-19 18:43:56 +08:00
committed by GitHub
parent 9036bd478b
commit 2d49e96a8a
10 changed files with 175 additions and 54 deletions

View File

@@ -0,0 +1,21 @@
package getter
import (
"testing"
"github.com/stretchr/testify/require"
)
func TestGetImage(t *testing.T) {
tests := []struct {
urlStr string
}{
{
urlStr: "https://star-history.com/bytebase.webp",
},
}
for _, test := range tests {
_, err := GetImage(test.urlStr)
require.NoError(t, err)
}
}