init - add project files
This commit is contained in:
14
tools/jet-2.12.0/internal/jet/column_test.go
Normal file
14
tools/jet-2.12.0/internal/jet/column_test.go
Normal file
@@ -0,0 +1,14 @@
|
||||
package jet
|
||||
|
||||
import "testing"
|
||||
|
||||
func TestColumn(t *testing.T) {
|
||||
column := NewColumnImpl("col", "", nil)
|
||||
column.ExpressionInterfaceImpl.Parent = &column
|
||||
|
||||
assertClauseSerialize(t, column, "col")
|
||||
column.setTableName("table1")
|
||||
assertClauseSerialize(t, column, "table1.col")
|
||||
assertProjectionSerialize(t, &column, `table1.col AS "table1.col"`)
|
||||
assertProjectionSerialize(t, column.AS("alias1"), `table1.col AS "alias1"`)
|
||||
}
|
||||
Reference in New Issue
Block a user