MCPcopy
hub / github.com/pingcap/tidb / TestIssue56832

Function TestIssue56832

pkg/planner/core/point_get_plan_test.go:279–288  ·  view source on GitHub ↗
(t *testing.T)

Source from the content-addressed store, hash-verified

277}
278
279func TestIssue56832(t *testing.T) {
280 store := testkit.CreateMockStore(t)
281 tk := testkit.NewTestKit(t, store)
282 tk.MustExec("use test")
283 tk.MustExec("drop table if exists t")
284 tk.MustExec("create table t (id int primary key, c enum('0', '1', '2'));")
285 tk.MustExec("insert into t values (0,'0'), (1,'1'), (2,'2');")
286 tk.MustExec("update t set c = 2 where id = 0;")
287 tk.MustQuery("select c from t where id = 0").Check(testkit.Rows("1"))
288}

Callers

nothing calls this directly

Calls 6

MustExecMethod · 0.95
MustQueryMethod · 0.95
CreateMockStoreFunction · 0.92
NewTestKitFunction · 0.92
RowsFunction · 0.92
CheckMethod · 0.65

Tested by

no test coverage detected