@@ -42,7 +42,7 @@ func Test_Entry(t *testing.T) {
4242 }
4343
4444 for _ , u := range []* cache.Update {u1 , u2 , u3 } {
45- err = root .AddCacheUpdateRecursive (ctx , u , true )
45+ _ , err = root .AddCacheUpdateRecursive (ctx , u , true )
4646 if err != nil {
4747 t .Error (err )
4848 }
@@ -88,7 +88,7 @@ func Test_Entry_One(t *testing.T) {
8888
8989 // start test
9090 for _ , u := range []* cache.Update {u1 , u2 , u3 } {
91- err := root .AddCacheUpdateRecursive (ctx , u , true )
91+ _ , err := root .AddCacheUpdateRecursive (ctx , u , true )
9292 if err != nil {
9393 t .Error (err )
9494 }
@@ -154,7 +154,7 @@ func Test_Entry_Two(t *testing.T) {
154154
155155 // start test add "existing" data
156156 for _ , u := range []* cache.Update {u1 } {
157- err := root .AddCacheUpdateRecursive (ctx , u , false )
157+ _ , err := root .AddCacheUpdateRecursive (ctx , u , false )
158158 if err != nil {
159159 t .Error (err )
160160 }
@@ -167,7 +167,7 @@ func Test_Entry_Two(t *testing.T) {
167167 n1 := cache .NewUpdate ([]string {"interface" , "ethernet-0/0" , "subinterface" , "10" , "description" }, overwriteDesc , prio50 , owner1 , ts1 )
168168
169169 for _ , u := range []* cache.Update {n1 } {
170- err : = root .AddCacheUpdateRecursive (ctx , u , true )
170+ _ , err = root .AddCacheUpdateRecursive (ctx , u , true )
171171 if err != nil {
172172 t .Error (err )
173173 }
@@ -212,7 +212,7 @@ func Test_Entry_Three(t *testing.T) {
212212
213213 // start test add "existing" data
214214 for _ , u := range []* cache.Update {u1 , u2 , u3 , u4 } {
215- err := root .AddCacheUpdateRecursive (ctx , u , false )
215+ _ , err := root .AddCacheUpdateRecursive (ctx , u , false )
216216 if err != nil {
217217 t .Error (err )
218218 }
@@ -258,7 +258,7 @@ func Test_Entry_Three(t *testing.T) {
258258 n2 := cache .NewUpdate ([]string {"interface" , "ethernet-0/0" , "subinterface" , "11" , "description" }, overwriteDesc , prio50 , owner1 , ts1 )
259259
260260 for _ , u := range []* cache.Update {n1 , n2 } {
261- err := root .AddCacheUpdateRecursive (ctx , u , true )
261+ _ , err := root .AddCacheUpdateRecursive (ctx , u , true )
262262 if err != nil {
263263 t .Error (err )
264264 }
@@ -327,7 +327,7 @@ func Test_Entry_Four(t *testing.T) {
327327
328328 // start test add "existing" data
329329 for _ , u := range []* cache.Update {u1o1 , u2o1 , u3 , u4 , u1o2 , u2o2 } {
330- err := root .AddCacheUpdateRecursive (ctx , u , false )
330+ _ , err := root .AddCacheUpdateRecursive (ctx , u , false )
331331 if err != nil {
332332 t .Error (err )
333333 }
@@ -360,7 +360,7 @@ func Test_Entry_Four(t *testing.T) {
360360 n2 := cache .NewUpdate ([]string {"interface" , "ethernet-0/1" , "subinterface" , "11" , "description" }, overwriteDesc , prio50 , owner1 , ts1 )
361361
362362 for _ , u := range []* cache.Update {n1 , n2 } {
363- err := root .AddCacheUpdateRecursive (ctx , u , true )
363+ _ , err := root .AddCacheUpdateRecursive (ctx , u , true )
364364 if err != nil {
365365 t .Error (err )
366366 }
@@ -434,7 +434,7 @@ func Test_Validation_Leaflist_Min_Max(t *testing.T) {
434434
435435 // start test add "existing" data
436436 for _ , u := range []* cache.Update {u1 } {
437- err := root .AddCacheUpdateRecursive (ctx , u , false )
437+ _ , err := root .AddCacheUpdateRecursive (ctx , u , false )
438438 if err != nil {
439439 t .Fatal (err )
440440 }
@@ -485,7 +485,7 @@ func Test_Validation_Leaflist_Min_Max(t *testing.T) {
485485
486486 // start test add "existing" data
487487 for _ , u := range []* cache.Update {u1 } {
488- err := root .AddCacheUpdateRecursive (ctx , u , false )
488+ _ , err := root .AddCacheUpdateRecursive (ctx , u , false )
489489 if err != nil {
490490 t .Fatal (err )
491491 }
@@ -540,7 +540,7 @@ func Test_Validation_Leaflist_Min_Max(t *testing.T) {
540540
541541 // start test add "existing" data
542542 for _ , u := range []* cache.Update {u1 } {
543- err := root .AddCacheUpdateRecursive (ctx , u , false )
543+ _ , err := root .AddCacheUpdateRecursive (ctx , u , false )
544544 if err != nil {
545545 t .Fatal (err )
546546 }
@@ -596,7 +596,7 @@ func Test_Entry_Delete_Aggregation(t *testing.T) {
596596
597597 // start test add "existing" data
598598 for _ , u := range []* cache.Update {u1 , u2 , u3 , u4 , u5 , u6 } {
599- err := root .AddCacheUpdateRecursive (ctx , u , false )
599+ _ , err := root .AddCacheUpdateRecursive (ctx , u , false )
600600 if err != nil {
601601 t .Fatal (err )
602602 }
@@ -610,7 +610,7 @@ func Test_Entry_Delete_Aggregation(t *testing.T) {
610610
611611 // start test add "new" / request data
612612 for _ , u := range []* cache.Update {u1n , u2n } {
613- err := root .AddCacheUpdateRecursive (ctx , u , true )
613+ _ , err := root .AddCacheUpdateRecursive (ctx , u , true )
614614 if err != nil {
615615 t .Fatal (err )
616616 }
@@ -1204,7 +1204,7 @@ func Test_Validation_String_Pattern(t *testing.T) {
12041204 u1 := cache .NewUpdate ([]string {"patterntest" }, leafval , prio50 , owner1 , ts1 )
12051205
12061206 for _ , u := range []* cache.Update {u1 } {
1207- err := root .AddCacheUpdateRecursive (ctx , u , true )
1207+ _ , err := root .AddCacheUpdateRecursive (ctx , u , true )
12081208 if err != nil {
12091209 t .Fatal (err )
12101210 }
@@ -1245,7 +1245,7 @@ func Test_Validation_String_Pattern(t *testing.T) {
12451245 u1 := cache .NewUpdate ([]string {"patterntest" }, leafval , prio50 , owner1 , ts1 )
12461246
12471247 for _ , u := range []* cache.Update {u1 } {
1248- err := root .AddCacheUpdateRecursive (ctx , u , true )
1248+ _ , err := root .AddCacheUpdateRecursive (ctx , u , true )
12491249 if err != nil {
12501250 t .Fatal (err )
12511251 }
0 commit comments