github.com/kunlun-qilian/sqlx/v3@v3.0.0/builder/alias_test.go (about) 1 package builder_test 2 3 import ( 4 "testing" 5 6 . "github.com/kunlun-qilian/sqlx/v3/builder" 7 . "github.com/kunlun-qilian/sqlx/v3/builder/buidertestingutils" 8 "github.com/onsi/gomega" 9 ) 10 11 func TestAlias(t *testing.T) { 12 t.Run("alias", func(t *testing.T) { 13 gomega.NewWithT(t).Expect(Alias(Expr("f_id"), "id")).To(BeExpr("f_id AS id")) 14 }) 15 }