Skip to content

Commit

Permalink
add unit test
Browse files Browse the repository at this point in the history
  • Loading branch information
teckick committed Oct 31, 2019
1 parent bab6fea commit f6b11fb
Showing 1 changed file with 9 additions and 0 deletions.
9 changes: 9 additions & 0 deletions proxy/plan/plan_select_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -243,6 +243,15 @@ func TestSimpleSelectShardMycatMurmur_ShardKeyTypeString(t *testing.T) {
},
},
},
{
db: "db_mycat",
sql: "select * from tbl_mycat_murmur where id = '0'",
sqls: map[string]map[string][]string{
"slice-1": {
"db_mycat_2": {"SELECT * FROM `tbl_mycat_murmur` WHERE `id`='0'"},
},
},
},
}
for _, test := range tests {
t.Run(test.sql, getTestFunc(ns, test))
Expand Down

0 comments on commit f6b11fb

Please sign in to comment.