MCPcopy Create free account
hub / github.com/EBWi11/AgentSmith-HUB / parseNodeDirect

Function parseNodeDirect

src/api/testing.go:2176–2182  ·  view source on GitHub ↗

parseNodeDirect splits "TYPE.name" into ("TYPE", "name")

(s string)

Source from the content-addressed store, hash-verified

2174func parseNodeDirect(s string) (string, string) {
2175 parts := strings.SplitN(s, ".", 2)
2176 if len(parts) != 2 {
2177 return "", ""
2178 }
2179 return strings.ToUpper(strings.TrimSpace(parts[0])), strings.TrimSpace(parts[1])
2180}
2181
2182// buildPNSDirect builds ProjectNodeSequence for flow nodes
2183func buildPNSDirect(flowNodes []project.FlowNode) {
2184 // Build ProjectNodeSequence recursively for a specific component
2185 var buildSequence func(component string, visited map[string]bool) string

Callers 3

parseProjectInputsDirectFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected