File tree Expand file tree Collapse file tree 4 files changed +474
-19
lines changed
Expand file tree Collapse file tree 4 files changed +474
-19
lines changed Original file line number Diff line number Diff line change @@ -2,6 +2,6 @@ package ydb
22
33import "github.com/sqlc-dev/sqlc/internal/sql/catalog"
44
5- func newTestCatalog () * catalog.Catalog {
5+ func NewTestCatalog () * catalog.Catalog {
66 return catalog .New ("main" )
77}
Original file line number Diff line number Diff line change 1- package ydb
1+ package ydb_test
22
33import (
44 "strconv"
77
88 "github.com/google/go-cmp/cmp"
99 "github.com/google/go-cmp/cmp/cmpopts"
10+ "github.com/sqlc-dev/sqlc/internal/engine/ydb"
1011 "github.com/sqlc-dev/sqlc/internal/sql/ast"
1112 "github.com/sqlc-dev/sqlc/internal/sql/catalog"
1213)
@@ -125,7 +126,7 @@ func TestCreateTable(t *testing.T) {
125126 },
126127 }
127128
128- p := NewParser ()
129+ p := ydb . NewParser ()
129130 for i , tc := range tests {
130131 test := tc
131132 t .Run (strconv .Itoa (i ), func (t * testing.T ) {
@@ -135,13 +136,13 @@ func TestCreateTable(t *testing.T) {
135136 t .Fatal (err )
136137 }
137138
138- c := newTestCatalog ()
139+ c := ydb . NewTestCatalog ()
139140 if err := c .Build (stmts ); err != nil {
140141 t .Log (test .stmt )
141142 t .Fatal (err )
142143 }
143144
144- e := newTestCatalog ()
145+ e := ydb . NewTestCatalog ()
145146 if test .s != nil {
146147 var replaced bool
147148 for i := range e .Schemas {
You can’t perform that action at this time.
0 commit comments