26 lines
478 B
Go
26 lines
478 B
Go
|
package sqlite
|
||
|
|
||
|
import (
|
||
|
"os"
|
||
|
"testing"
|
||
|
|
||
|
"forge.cadoles.com/arcad/edge/pkg/storage/testsuite"
|
||
|
"github.com/pkg/errors"
|
||
|
"gitlab.com/wpetit/goweb/logger"
|
||
|
)
|
||
|
|
||
|
func TestBlobStore(t *testing.T) {
|
||
|
t.Parallel()
|
||
|
logger.SetLevel(logger.LevelDebug)
|
||
|
|
||
|
file := "./testdata/blobstore_test.sqlite"
|
||
|
|
||
|
if err := os.Remove(file); err != nil && !errors.Is(err, os.ErrNotExist) {
|
||
|
t.Fatalf("%+v", errors.WithStack(err))
|
||
|
}
|
||
|
|
||
|
store := NewBlobStore(file)
|
||
|
|
||
|
testsuite.TestBlobStore(t, store)
|
||
|
}
|