MCPcopy Index your code
hub / github.com/TheAlgorithms/Go / TestGraphValidateColorsOfVertex_Negative

Function TestGraphValidateColorsOfVertex_Negative

graph/coloring/graph_test.go:145–153  ·  view source on GitHub ↗
(t *testing.T)

Source from the content-addressed store, hash-verified

143}
144
145func TestGraphValidateColorsOfVertex_Negative(t *testing.T) {
146 for i, tt := range getTestGraphsForNegativeTests() {
147 t.Run(strconv.Itoa(i), func(t *testing.T) {
148 if err := tt.Graph.ValidateColorsOfVertex(tt.VertexColors); err == nil {
149 t.Errorf("ValidateColorsOfVertex() error = nil, want some err")
150 }
151 })
152 }
153}

Callers

nothing calls this directly

Calls 2

Tested by

no test coverage detected