hiling_go/api/test/location_test.go

32 lines
659 B
Go
Raw Normal View History

package api_test
import (
"database/sql"
"testing"
db "git.nochill.in/nochill/hiling_go/db/sqlc"
"git.nochill.in/nochill/hiling_go/util"
"go.uber.org/mock/gomock"
)
func TestGetListLocationsAPI(t *testing.T) {
}
func TestCreateLocationAPI(t *testing.T) {
_ = db.CreateLocationParams{
Address: util.RandomString(10),
Name: util.RandomString(10),
SubmittedBy: int32(util.RandomInt(0, 10)),
RegencyID: 1305,
GoogleMapsLink: sql.NullString{Valid: true, String: util.RandomString(10)},
}
t.Run("OK", func(t *testing.T) {
ctrl := gomock.NewController(t)
defer ctrl.Finish()
// store := mockdb.MockStore
})
}