File tree Expand file tree Collapse file tree 4 files changed +482
-19
lines changed Expand file tree Collapse file tree 4 files changed +482
-19
lines changed Original file line number Diff line number Diff line change @@ -2,6 +2,6 @@ package ydb
2
2
3
3
import "github.com/sqlc-dev/sqlc/internal/sql/catalog"
4
4
5
- func newTestCatalog () * catalog.Catalog {
5
+ func NewTestCatalog () * catalog.Catalog {
6
6
return catalog .New ("main" )
7
7
}
Original file line number Diff line number Diff line change 1
- package ydb
1
+ package ydb_test
2
2
3
3
import (
4
4
"strconv"
7
7
8
8
"github.com/google/go-cmp/cmp"
9
9
"github.com/google/go-cmp/cmp/cmpopts"
10
+ "github.com/sqlc-dev/sqlc/internal/engine/ydb"
10
11
"github.com/sqlc-dev/sqlc/internal/sql/ast"
11
12
"github.com/sqlc-dev/sqlc/internal/sql/catalog"
12
13
)
@@ -125,7 +126,7 @@ func TestCreateTable(t *testing.T) {
125
126
},
126
127
}
127
128
128
- p := NewParser ()
129
+ p := ydb . NewParser ()
129
130
for i , tc := range tests {
130
131
test := tc
131
132
t .Run (strconv .Itoa (i ), func (t * testing.T ) {
@@ -135,13 +136,13 @@ func TestCreateTable(t *testing.T) {
135
136
t .Fatal (err )
136
137
}
137
138
138
- c := newTestCatalog ()
139
+ c := ydb . NewTestCatalog ()
139
140
if err := c .Build (stmts ); err != nil {
140
141
t .Log (test .stmt )
141
142
t .Fatal (err )
142
143
}
143
144
144
- e := newTestCatalog ()
145
+ e := ydb . NewTestCatalog ()
145
146
if test .s != nil {
146
147
var replaced bool
147
148
for i := range e .Schemas {
You can’t perform that action at this time.
0 commit comments