code cleanup

This commit is contained in:
rushtehrani
2019-12-10 11:49:27 -08:00
parent 0996aa830d
commit 7fd5a0b1fe
15 changed files with 73 additions and 63 deletions

View File

@@ -9,18 +9,18 @@ import (
)
func TestWorkflowRepositoryCreate(t *testing.T) {
uuid, err := uuid.NewRandom()
uid, err := uuid.NewRandom()
if err != nil {
t.Error(err)
return
}
workflow := &model.Workflow{
UUID: uuid,
UID: uid.String(),
}
sql, args, err := sq.Insert("workflows").
SetMap(sq.Eq{
"UUID": workflow.UUID,
"UID": workflow.UID,
}).ToSql()
if err != nil {
t.Error(err)