@@ -130,7 +130,7 @@ func TestGraphJSON_basicRecord(t *testing.T) {
130130}
131131
132132// Verify that Vertex and Edge annotations appear in the debug output
133- func TestGraphJSON_annotations (t * testing.T ) {
133+ func TestGraphJSON_debugInfo (t * testing.T ) {
134134 var g Graph
135135 var buf bytes.Buffer
136136 g .SetDebugWriter (& buf )
@@ -140,9 +140,9 @@ func TestGraphJSON_annotations(t *testing.T) {
140140 g .Add (3 )
141141 g .Connect (BasicEdge (1 , 2 ))
142142
143- g .AnnotateVertex (2 , "2" )
144- g .AnnotateVertex (3 , "3" )
145- g .AnnotateEdge (BasicEdge (1 , 2 ), "1|2" )
143+ g .DebugVertexInfo (2 , "2" )
144+ g .DebugVertexInfo (3 , "3" )
145+ g .DebugEdgeInfo (BasicEdge (1 , 2 ), "1|2" )
146146
147147 dec := json .NewDecoder (bytes .NewReader (buf .Bytes ()))
148148
@@ -156,8 +156,8 @@ func TestGraphJSON_annotations(t *testing.T) {
156156 }
157157
158158 switch d .Type {
159- case "VertexAnnotation " :
160- va := & vertexAnnotation {}
159+ case "VertexDebugInfo " :
160+ va := & vertexDebugInfo {}
161161 err := json .Unmarshal (d .JSON , va )
162162 if err != nil {
163163 t .Fatal (err )
@@ -177,8 +177,8 @@ func TestGraphJSON_annotations(t *testing.T) {
177177 default :
178178 t .Fatalf ("unexpected annotation: %#v" , va )
179179 }
180- case "EdgeAnnotation " :
181- ea := & edgeAnnotation {}
180+ case "EdgeDebugInfo " :
181+ ea := & edgeDebugInfo {}
182182 err := json .Unmarshal (d .JSON , ea )
183183 if err != nil {
184184 t .Fatal (err )
0 commit comments