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

Function TestParseGraph_InvalidGroupDefinition

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

Source from the content-addressed store, hash-verified

90}
91
92func TestParseGraph_InvalidGroupDefinition(t *testing.T) {
93 nodes := []string{"1"}
94 input := `a = 1 = b`
95 _, err := ParseGraph(strings.Split(input, "\n"), nodes)
96 assert.ErrorContains(t, err, ". group definition must contain one '='")
97}
98
99func TestParseGraph_Single(t *testing.T) {
100 nodes := []string{"1", "2", "3", "4", "5"}

Callers

nothing calls this directly

Calls 1

ParseGraphFunction · 0.85

Tested by

no test coverage detected