github.com/octohelm/storage@v0.0.0-20240516030302-1ac2cc1ea347/pkg/sqlbuilder/alias_test.go (about)

     1  package sqlbuilder_test
     2  
     3  import (
     4  	"testing"
     5  
     6  	"github.com/octohelm/storage/internal/testutil"
     7  	. "github.com/octohelm/storage/pkg/sqlbuilder"
     8  )
     9  
    10  func TestAlias(t *testing.T) {
    11  	t.Run("alias", func(t *testing.T) {
    12  		testutil.ShouldBeExpr(t, Alias(Expr("f_id"), "id"), "f_id AS id")
    13  	})
    14  }