(attrsPanel *tview.Table)
| 177 | } |
| 178 | |
| 179 | func selectAnchoredAttribute(attrsPanel *tview.Table) { |
| 180 | rowCount := attrsPanel.GetRowCount() |
| 181 | |
| 182 | for idx := 0; idx < rowCount; idx++ { |
| 183 | cell := attrsPanel.GetCell(idx, 0) |
| 184 | cellRef := cell.GetReference() |
| 185 | if cellRef == nil { |
| 186 | continue |
| 187 | } |
| 188 | |
| 189 | cellAttrName, ok := cellRef.(string) |
| 190 | if !ok { |
| 191 | continue |
| 192 | } |
| 193 | |
| 194 | if cellAttrName == selectedAttrName { |
| 195 | attrsPanel.Select(idx, 0) |
| 196 | return |
| 197 | } |
| 198 | } |
| 199 | } |
| 200 | |
| 201 | func createTreeNodeFromEntry(entry *ldap.Entry) *tview.TreeNode { |
| 202 | _, ok := explorerCache.Get(entry.DN) |
no outgoing calls
no test coverage detected