Skip to content

Commit

Permalink
chore: update test & comment
Browse files Browse the repository at this point in the history
  • Loading branch information
shhdgit committed May 19, 2022
1 parent 5849af5 commit 52d47d4
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
2 changes: 1 addition & 1 deletion pkg/keyvisual/decorator/tidb.go
Original file line number Diff line number Diff line change
Expand Up @@ -64,7 +64,7 @@ type TableInOrder struct {
tables []*tableDetail
}

// BuildFromTableMap build order map from a table map.
// BuildFromTableMap build ordered tables from a table map.
func (inOrder *TableInOrder) BuildFromTableMap(m *sync.Map) {
tables := []*tableDetail{}
m.Range(func(key, value interface{}) bool {
Expand Down
1 change: 1 addition & 0 deletions pkg/keyvisual/decorator/tidb_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -46,4 +46,5 @@ func TestTableInOrderFindOne(t *testing.T) {
require.Nil(t, tableInOrder.FindOne(3, 4))
require.Nil(t, tableInOrder.FindOne(8, 0))
require.Nil(t, tableInOrder.FindOne(8, 8))
require.Nil(t, tableInOrder.FindOne(80, 81))
}

0 comments on commit 52d47d4

Please sign in to comment.