(dn string, parent *tview.TreeNode)
| 28 | } |
| 29 | |
| 30 | func findEntryInChildren(dn string, parent *tview.TreeNode) int { |
| 31 | siblings := parent.GetChildren() |
| 32 | |
| 33 | for idx, loopNode := range siblings { |
| 34 | if loopNode.GetReference().(string) == dn { |
| 35 | return idx |
| 36 | } |
| 37 | } |
| 38 | |
| 39 | return -1 |
| 40 | } |
| 41 | |
| 42 | func numericAcceptanceFunc(textToCheck string, lastChar rune) bool { |
| 43 | _, err := strconv.Atoi(textToCheck) |
no outgoing calls
no test coverage detected