MCPcopy Create free account
hub / github.com/encodeous/nylon / TestParseGraph_GroupNameIsNodeName

Function TestParseGraph_GroupNameIsNodeName

state/config_test.go:85–90  ·  view source on GitHub ↗
(t *testing.T)

Source from the content-addressed store, hash-verified

83}
84
85func TestParseGraph_GroupNameIsNodeName(t *testing.T) {
86 nodes := []string{"1"}
87 input := `1 = 1`
88 _, err := ParseGraph(strings.Split(input, "\n"), nodes)
89 assert.ErrorContains(t, err, "group name must not be a node name: 1")
90}
91
92func TestParseGraph_InvalidGroupDefinition(t *testing.T) {
93 nodes := []string{"1"}

Callers

nothing calls this directly

Calls 1

ParseGraphFunction · 0.85

Tested by

no test coverage detected