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

Function TestParseGraph_SymbolError

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

Source from the content-addressed store, hash-verified

68}
69
70func TestParseGraph_SymbolError(t *testing.T) {
71 nodes := []string{"1"}
72 input := `a = 1
73b = 2`
74 _, err := ParseGraph(strings.Split(input, "\n"), nodes)
75 assert.ErrorContains(t, err, "2 is not a valid node/group")
76}
77
78func TestParseGraph_EmptyGroup(t *testing.T) {
79 nodes := []string{"1"}

Callers

nothing calls this directly

Calls 1

ParseGraphFunction · 0.85

Tested by

no test coverage detected