(t *testing.T)
| 21 | ) |
| 22 | |
| 23 | func TestExplain(t *testing.T) { |
| 24 | a := assert.New(t) |
| 25 | tir := ir.MockTrainStmt(true) |
| 26 | astmt := &ir.ExplainStmt{ |
| 27 | Select: "SELECT * FROM iris.train", |
| 28 | Explainer: "TreeExplainer", |
| 29 | Attributes: map[string]interface{}{ |
| 30 | "summary.plot_type": "dot", |
| 31 | "others.type": "bar", |
| 32 | }, |
| 33 | TrainStmt: tir, |
| 34 | } |
| 35 | _, err := Explain(astmt, mockSession()) |
| 36 | a.NoError(err) |
| 37 | } |
nothing calls this directly
no test coverage detected