26 lines
563 B
Go
26 lines
563 B
Go
package s3_test
|
|
|
|
import (
|
|
"testing"
|
|
|
|
"github.com/stretchr/testify/assert"
|
|
|
|
"codeberg.org/genofire/golang-lib/web/file"
|
|
"codeberg.org/genofire/golang-lib/web/file/s3"
|
|
)
|
|
|
|
// TODO: actually test, either using little dummies or using sth like play.min.io
|
|
|
|
func TestTypes(t *testing.T) {
|
|
assert := assert.New(t)
|
|
|
|
var fstore file.FS
|
|
fstore, err := s3.New("127.0.0.1", false, "", "", "", "")
|
|
_ = fstore
|
|
assert.Error(err)
|
|
}
|
|
|
|
func ExampleNew() {
|
|
s3.New("play.min.io", true, "Q3AM3UQ867SPQQA43P2F", "zuf+tfteSlswRu7BJ86wekitnifILbZam1KYY3TG", "file-store", "")
|
|
}
|