(node *tree.Node)
| 186 | } |
| 187 | |
| 188 | func (s *TreeServer) treeNodeToDataSourcePath(node *tree.Node) (dataSourceName string, dataSourcePath string) { |
| 189 | |
| 190 | path := strings.Trim(node.GetPath(), "/") |
| 191 | if path == "" { |
| 192 | return "", "" |
| 193 | } |
| 194 | parts := strings.Split(path, "/") |
| 195 | dataSourceName = parts[0] |
| 196 | if len(parts) > 1 { |
| 197 | dataSourcePath = strings.Join(parts[1:], "/") |
| 198 | } else { |
| 199 | dataSourcePath = "" |
| 200 | } |
| 201 | |
| 202 | return dataSourceName, dataSourcePath |
| 203 | |
| 204 | } |
| 205 | |
| 206 | func (s *TreeServer) updateDataSourceNode(node *tree.Node, dataSourceName string) { |
| 207 |
no test coverage detected