github.com/eden-framework/sqlx@v0.0.2/builder/alias_test.go (about) 1 package builder_test 2 3 import ( 4 "testing" 5 6 . "github.com/eden-framework/sqlx/builder" 7 . "github.com/eden-framework/sqlx/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 }