You cannot select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
22 lines
371 B
Go
22 lines
371 B
Go
3 years ago
|
package test
|
||
|
|
||
|
import (
|
||
|
"path"
|
||
|
"testing"
|
||
|
"caj-larsson/bog/domain"
|
||
|
"caj-larsson/bog/integration"
|
||
|
"caj-larsson/bog/test/mock"
|
||
|
)
|
||
|
|
||
|
func TestFsFileRepo(t *testing.T) {
|
||
|
|
||
|
var fac = func()domain.FileDataRepository {
|
||
|
r := t.TempDir()
|
||
|
d := path.Join(r, "fs")
|
||
|
repo := integration.FileSystemBogRepository { d }
|
||
|
return &repo
|
||
|
}
|
||
|
|
||
|
mock.BogFileRepositoryContract(fac, t)
|
||
|
}
|