26 lines
346 B
Go
26 lines
346 B
Go
package postgres
|
|
|
|
import (
|
|
"fmt"
|
|
"go.unistack.org/unistack-org/pkgdash/models"
|
|
"testing"
|
|
)
|
|
|
|
func TestGenerate(t *testing.T) {
|
|
m := []models.Module{
|
|
{
|
|
1, "test", "1.2.3", 2, "23.31",
|
|
},
|
|
{
|
|
1, "321test", "1.3", 4, "2111.31",
|
|
},
|
|
{
|
|
1, "testabcd", "1.2.3", 2, "153453.31",
|
|
},
|
|
}
|
|
|
|
str := generateQuery(m)
|
|
|
|
fmt.Println(str)
|
|
}
|