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

Function TestGraph_ValidateColorsOfVertex

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

Source from the content-addressed store, hash-verified

119}
120
121func TestGraph_ValidateColorsOfVertex(t *testing.T) {
122 for i, tt := range getTestGraphs() {
123 t.Run(strconv.Itoa(i), func(t *testing.T) {
124 if err := tt.Graph.ValidateColorsOfVertex(tt.VertexColors); err != nil {
125 t.Errorf("ValidateColorsOfVertex() error = %v, wantErr nil", err)
126 }
127 })
128 }
129}
130
131func getTestGraphsForNegativeTests() (list []*testGraph) {
132 list = getTestGraphs()

Callers

nothing calls this directly

Calls 2

getTestGraphsFunction · 0.85

Tested by

no test coverage detected