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

Function failGraph

state/config_test.go:136–139  ·  view source on GitHub ↗
(t *testing.T, graph string)

Source from the content-addressed store, hash-verified

134}
135
136func failGraph(t *testing.T, graph string) {
137 _, err := ParseGraph(strings.Split(graph, "\n"), []string{"1", "2", "3", "4", "5", "6", "7", "8", "9", "10"})
138 assert.Error(t, err)
139}
140
141func TestParseGraph_InvalidGraph(t *testing.T) {
142 failGraph(t, `this graph is a baddie`)

Callers 1

Calls 2

ParseGraphFunction · 0.85
ErrorMethod · 0.45

Tested by

no test coverage detected