Commit 5711734
authored
internal/endtoend: Move more tests to the record/replay framework
The tests contained in `query_test.go` and `checks_test.go` have been ported to the endtoend testing framework. Those tests now live in directories under internal/endtoend/testdata. The old tests only focused on parts of the execution path run by `sqlc generate`. The new tests execute the exact same code as `sqlc generate`, end to end.
Going forward, most tests should be written using this framework.1 parent f2ad76c commit 5711734
228 files changed
Lines changed: 4461 additions & 1116 deletions
File tree
- internal
- cmd
- dinosql
- endtoend
- testdata
- alias
- go
- any
- go
- as
- go
- builtins
- go
- case_stmt_bool
- go
- cast_coalesce
- go
- coalesce
- go
- column_as
- go
- comparisons
- go
- cte_count
- go
- cte_filter
- go
- identical_tables
- go
- insert_select
- go
- invalid_func_args
- invalid_params
- invalid_queries_bar
- invalid_queries_foo
- in
- go
- join_text_array
- go
- join_where_clause
- go
- limit
- go
- lower_switched_order
- go
- lower
- go
- mathmatical_operator
- go
- multifrom
- go
- ondeck
- pg_advisory_xact_lock
- go
- schema_scoped_create
- go
- schema_scoped_delete
- go
- schema_scoped_filter
- go
- schema_scoped_list
- go
- schema_scoped_update
- go
- select_column_cast
- go
- select_text_array
- go
- star_expansion_cte
- go
- star_expansion_from_cte
- go
- star_expansion_join
- go
- star_expansion_reserved
- go
- star_expansion_subquery
- go
- star_expansion
- go
- star
- go
- table_name
- go
- text_array
- go
- two_joins
- go
- unknown_func
- go
- update_set_multiple
- go
- update_set
- go
Some content is hidden
Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
6 | 6 | | |
7 | 7 | | |
8 | 8 | | |
| 9 | + | |
9 | 10 | | |
10 | 11 | | |
11 | 12 | | |
| |||
26 | 27 | | |
27 | 28 | | |
28 | 29 | | |
| 30 | + | |
| 31 | + | |
| 32 | + | |
| 33 | + | |
| 34 | + | |
29 | 35 | | |
30 | 36 | | |
31 | 37 | | |
| |||
68 | 74 | | |
69 | 75 | | |
70 | 76 | | |
71 | | - | |
| 77 | + | |
72 | 78 | | |
73 | 79 | | |
74 | 80 | | |
| |||
84 | 90 | | |
85 | 91 | | |
86 | 92 | | |
87 | | - | |
| 93 | + | |
88 | 94 | | |
89 | 95 | | |
90 | 96 | | |
| |||
98 | 104 | | |
99 | 105 | | |
100 | 106 | | |
101 | | - | |
| 107 | + | |
102 | 108 | | |
103 | 109 | | |
104 | 110 | | |
| |||
This file was deleted.
0 commit comments