featurebase/sql3
Lory Cloutier 7031f7b968
Fb 2048 (#2363)
* Add test coverage for executionplanner.go
*ExecutionPlanner.mapper does not get tested in the case where its
context gets cancelled. In order to make testing this possible,
I've added a context argument to sql_test.MustQueryRow. If it's
nil, MustQueryRow creates a context for itself just like it always
has, but if a context is provided, it uses that.

* Adds test coverage for ExecutionPlanner.mapper in executionplanner.go
The case where the context gets cancelled mid-query is now covered.
The test is timing-dependent - the cancel call has to happen after
the query has been started but before it finishes, and in just the
right part of MustRunQuery, in order to actually produce a context
cancelled error, and not, say, a query cancelled error. May have to
adjust timing if the current delays don't work in CI testing.

* Addressed review notes
-reordered arguments for MustRunQuery
-moved MustRunQuery out of a goroutine, put the cancel in one
2023-04-03 12:04:41 -05:00
..
parser Improve test coverage for ast components in ast.go (#2355) 2023-03-31 14:27:18 -04:00
planner Improve test coverage for ast components in ast.go (#2355) 2023-03-31 14:27:18 -04:00
test Fb 2048 (#2363) 2023-04-03 12:04:41 -05:00
errors.go fb-2036 improve coverage for create view statement (#2333) 2023-03-21 14:06:38 -04:00
interfaces.go introduce performance counters and system table fanout, plus refactor metrics (#2363) 2023-01-19 21:35:02 +00:00
main_test.go added testify dependency 2022-09-30 11:31:37 -07:00
sql_complex_test.go Fb 2048 (#2363) 2023-04-03 12:04:41 -05:00
sql_test.go Fb 2048 (#2363) 2023-04-03 12:04:41 -05:00