()
| 20 | ) |
| 21 | |
| 22 | func SetContextToMockCsv() { |
| 23 | TestContext = func(query string) *plan.Context { |
| 24 | ctx := plan.NewContext(query) |
| 25 | ctx.DisableRecover = true |
| 26 | ctx.Schema = MockSchema |
| 27 | ctx.Session = datasource.NewMySqlSessionVars() |
| 28 | return ctx |
| 29 | } |
| 30 | } |
| 31 | |
| 32 | func SchemaLoader(name string) (*schema.Schema, error) { |
| 33 | return MockSchema, nil |
no test coverage detected