@@ -261,15 +261,15 @@ func TestRenderPipeSet(t *testing.T) {
261261
262262 tests := []struct {
263263 name string
264- pipes []* Pipe
264+ pipes []Pipe
265265 commit * models.Commit
266266 prevCommit * models.Commit
267267 expectedStr string
268268 expectedStyles []style.TextStyle
269269 }{
270270 {
271271 name : "single cell" ,
272- pipes : []* Pipe {
272+ pipes : []Pipe {
273273 {fromPos : 0 , toPos : 0 , fromHash : pool ("a" ), toHash : pool ("b" ), kind : TERMINATES , style : cyan },
274274 {fromPos : 0 , toPos : 0 , fromHash : pool ("b" ), toHash : pool ("c" ), kind : STARTS , style : green },
275275 },
@@ -279,7 +279,7 @@ func TestRenderPipeSet(t *testing.T) {
279279 },
280280 {
281281 name : "single cell, selected" ,
282- pipes : []* Pipe {
282+ pipes : []Pipe {
283283 {fromPos : 0 , toPos : 0 , fromHash : pool ("a" ), toHash : pool ("selected" ), kind : TERMINATES , style : cyan },
284284 {fromPos : 0 , toPos : 0 , fromHash : pool ("selected" ), toHash : pool ("c" ), kind : STARTS , style : green },
285285 },
@@ -289,7 +289,7 @@ func TestRenderPipeSet(t *testing.T) {
289289 },
290290 {
291291 name : "terminating hook and starting hook, selected" ,
292- pipes : []* Pipe {
292+ pipes : []Pipe {
293293 {fromPos : 0 , toPos : 0 , fromHash : pool ("a" ), toHash : pool ("selected" ), kind : TERMINATES , style : cyan },
294294 {fromPos : 1 , toPos : 0 , fromHash : pool ("c" ), toHash : pool ("selected" ), kind : TERMINATES , style : yellow },
295295 {fromPos : 0 , toPos : 0 , fromHash : pool ("selected" ), toHash : pool ("d" ), kind : STARTS , style : green },
@@ -303,7 +303,7 @@ func TestRenderPipeSet(t *testing.T) {
303303 },
304304 {
305305 name : "terminating hook and starting hook, prioritise the terminating one" ,
306- pipes : []* Pipe {
306+ pipes : []Pipe {
307307 {fromPos : 0 , toPos : 0 , fromHash : pool ("a" ), toHash : pool ("b" ), kind : TERMINATES , style : red },
308308 {fromPos : 1 , toPos : 0 , fromHash : pool ("c" ), toHash : pool ("b" ), kind : TERMINATES , style : magenta },
309309 {fromPos : 0 , toPos : 0 , fromHash : pool ("b" ), toHash : pool ("d" ), kind : STARTS , style : green },
@@ -317,7 +317,7 @@ func TestRenderPipeSet(t *testing.T) {
317317 },
318318 {
319319 name : "starting and terminating pipe sharing some space" ,
320- pipes : []* Pipe {
320+ pipes : []Pipe {
321321 {fromPos : 0 , toPos : 0 , fromHash : pool ("a1" ), toHash : pool ("a2" ), kind : TERMINATES , style : red },
322322 {fromPos : 0 , toPos : 0 , fromHash : pool ("a2" ), toHash : pool ("a3" ), kind : STARTS , style : yellow },
323323 {fromPos : 1 , toPos : 1 , fromHash : pool ("b1" ), toHash : pool ("b2" ), kind : CONTINUES , style : magenta },
@@ -332,7 +332,7 @@ func TestRenderPipeSet(t *testing.T) {
332332 },
333333 {
334334 name : "starting and terminating pipe sharing some space, with selection" ,
335- pipes : []* Pipe {
335+ pipes : []Pipe {
336336 {fromPos : 0 , toPos : 0 , fromHash : pool ("a1" ), toHash : pool ("selected" ), kind : TERMINATES , style : red },
337337 {fromPos : 0 , toPos : 0 , fromHash : pool ("selected" ), toHash : pool ("a3" ), kind : STARTS , style : yellow },
338338 {fromPos : 1 , toPos : 1 , fromHash : pool ("b1" ), toHash : pool ("b2" ), kind : CONTINUES , style : magenta },
@@ -347,7 +347,7 @@ func TestRenderPipeSet(t *testing.T) {
347347 },
348348 {
349349 name : "many terminating pipes" ,
350- pipes : []* Pipe {
350+ pipes : []Pipe {
351351 {fromPos : 0 , toPos : 0 , fromHash : pool ("a1" ), toHash : pool ("a2" ), kind : TERMINATES , style : red },
352352 {fromPos : 0 , toPos : 0 , fromHash : pool ("a2" ), toHash : pool ("a3" ), kind : STARTS , style : yellow },
353353 {fromPos : 1 , toPos : 0 , fromHash : pool ("b1" ), toHash : pool ("a2" ), kind : TERMINATES , style : magenta },
@@ -361,7 +361,7 @@ func TestRenderPipeSet(t *testing.T) {
361361 },
362362 {
363363 name : "starting pipe passing through" ,
364- pipes : []* Pipe {
364+ pipes : []Pipe {
365365 {fromPos : 0 , toPos : 0 , fromHash : pool ("a1" ), toHash : pool ("a2" ), kind : TERMINATES , style : red },
366366 {fromPos : 0 , toPos : 0 , fromHash : pool ("a2" ), toHash : pool ("a3" ), kind : STARTS , style : yellow },
367367 {fromPos : 0 , toPos : 3 , fromHash : pool ("a2" ), toHash : pool ("d3" ), kind : STARTS , style : yellow },
@@ -376,7 +376,7 @@ func TestRenderPipeSet(t *testing.T) {
376376 },
377377 {
378378 name : "starting and terminating path crossing continuing path" ,
379- pipes : []* Pipe {
379+ pipes : []Pipe {
380380 {fromPos : 0 , toPos : 0 , fromHash : pool ("a1" ), toHash : pool ("a2" ), kind : TERMINATES , style : red },
381381 {fromPos : 0 , toPos : 0 , fromHash : pool ("a2" ), toHash : pool ("a3" ), kind : STARTS , style : yellow },
382382 {fromPos : 0 , toPos : 1 , fromHash : pool ("a2" ), toHash : pool ("b3" ), kind : STARTS , style : yellow },
@@ -391,7 +391,7 @@ func TestRenderPipeSet(t *testing.T) {
391391 },
392392 {
393393 name : "another clash of starting and terminating paths" ,
394- pipes : []* Pipe {
394+ pipes : []Pipe {
395395 {fromPos : 0 , toPos : 0 , fromHash : pool ("a1" ), toHash : pool ("a2" ), kind : TERMINATES , style : red },
396396 {fromPos : 0 , toPos : 0 , fromHash : pool ("a2" ), toHash : pool ("a3" ), kind : STARTS , style : yellow },
397397 {fromPos : 0 , toPos : 1 , fromHash : pool ("a2" ), toHash : pool ("b3" ), kind : STARTS , style : yellow },
@@ -406,7 +406,7 @@ func TestRenderPipeSet(t *testing.T) {
406406 },
407407 {
408408 name : "commit whose previous commit is selected" ,
409- pipes : []* Pipe {
409+ pipes : []Pipe {
410410 {fromPos : 0 , toPos : 0 , fromHash : pool ("selected" ), toHash : pool ("a2" ), kind : TERMINATES , style : red },
411411 {fromPos : 0 , toPos : 0 , fromHash : pool ("a2" ), toHash : pool ("a3" ), kind : STARTS , style : yellow },
412412 },
@@ -418,7 +418,7 @@ func TestRenderPipeSet(t *testing.T) {
418418 },
419419 {
420420 name : "commit whose previous commit is selected and is a merge commit" ,
421- pipes : []* Pipe {
421+ pipes : []Pipe {
422422 {fromPos : 0 , toPos : 0 , fromHash : pool ("selected" ), toHash : pool ("a2" ), kind : TERMINATES , style : red },
423423 {fromPos : 1 , toPos : 1 , fromHash : pool ("selected" ), toHash : pool ("b3" ), kind : CONTINUES , style : red },
424424 },
@@ -430,7 +430,7 @@ func TestRenderPipeSet(t *testing.T) {
430430 },
431431 {
432432 name : "commit whose previous commit is selected and is a merge commit, with continuing pipe inbetween" ,
433- pipes : []* Pipe {
433+ pipes : []Pipe {
434434 {fromPos : 0 , toPos : 0 , fromHash : pool ("selected" ), toHash : pool ("a2" ), kind : TERMINATES , style : red },
435435 {fromPos : 1 , toPos : 1 , fromHash : pool ("z1" ), toHash : pool ("z3" ), kind : CONTINUES , style : green },
436436 {fromPos : 2 , toPos : 2 , fromHash : pool ("selected" ), toHash : pool ("b3" ), kind : CONTINUES , style : red },
@@ -443,7 +443,7 @@ func TestRenderPipeSet(t *testing.T) {
443443 },
444444 {
445445 name : "when previous commit is selected, not a merge commit, and spawns a continuing pipe" ,
446- pipes : []* Pipe {
446+ pipes : []Pipe {
447447 {fromPos : 0 , toPos : 0 , fromHash : pool ("a1" ), toHash : pool ("a2" ), kind : TERMINATES , style : red },
448448 {fromPos : 0 , toPos : 0 , fromHash : pool ("a2" ), toHash : pool ("a3" ), kind : STARTS , style : green },
449449 {fromPos : 0 , toPos : 1 , fromHash : pool ("a2" ), toHash : pool ("b3" ), kind : STARTS , style : green },
@@ -486,25 +486,25 @@ func TestGetNextPipes(t *testing.T) {
486486 pool := func (s string ) * string { return hashPool .Add (s ) }
487487
488488 tests := []struct {
489- prevPipes []* Pipe
489+ prevPipes []Pipe
490490 commit * models.Commit
491- expected []* Pipe
491+ expected []Pipe
492492 }{
493493 {
494- prevPipes : []* Pipe {
494+ prevPipes : []Pipe {
495495 {fromPos : 0 , toPos : 0 , fromHash : pool ("a" ), toHash : pool ("b" ), kind : STARTS , style : style .FgDefault },
496496 },
497497 commit : models .NewCommit (hashPool , models.NewCommitOpts {
498498 Hash : "b" ,
499499 Parents : []string {"c" },
500500 }),
501- expected : []* Pipe {
501+ expected : []Pipe {
502502 {fromPos : 0 , toPos : 0 , fromHash : pool ("a" ), toHash : pool ("b" ), kind : TERMINATES , style : style .FgDefault },
503503 {fromPos : 0 , toPos : 0 , fromHash : pool ("b" ), toHash : pool ("c" ), kind : STARTS , style : style .FgDefault },
504504 },
505505 },
506506 {
507- prevPipes : []* Pipe {
507+ prevPipes : []Pipe {
508508 {fromPos : 0 , toPos : 0 , fromHash : pool ("a" ), toHash : pool ("b" ), kind : TERMINATES , style : style .FgDefault },
509509 {fromPos : 0 , toPos : 0 , fromHash : pool ("b" ), toHash : pool ("c" ), kind : STARTS , style : style .FgDefault },
510510 {fromPos : 0 , toPos : 1 , fromHash : pool ("b" ), toHash : pool ("d" ), kind : STARTS , style : style .FgDefault },
@@ -513,21 +513,21 @@ func TestGetNextPipes(t *testing.T) {
513513 Hash : "d" ,
514514 Parents : []string {"e" },
515515 }),
516- expected : []* Pipe {
516+ expected : []Pipe {
517517 {fromPos : 0 , toPos : 0 , fromHash : pool ("b" ), toHash : pool ("c" ), kind : CONTINUES , style : style .FgDefault },
518518 {fromPos : 1 , toPos : 1 , fromHash : pool ("b" ), toHash : pool ("d" ), kind : TERMINATES , style : style .FgDefault },
519519 {fromPos : 1 , toPos : 1 , fromHash : pool ("d" ), toHash : pool ("e" ), kind : STARTS , style : style .FgDefault },
520520 },
521521 },
522522 {
523- prevPipes : []* Pipe {
523+ prevPipes : []Pipe {
524524 {fromPos : 0 , toPos : 0 , fromHash : pool ("a" ), toHash : pool ("root" ), kind : TERMINATES , style : style .FgDefault },
525525 },
526526 commit : models .NewCommit (hashPool , models.NewCommitOpts {
527527 Hash : "root" ,
528528 Parents : []string {},
529529 }),
530- expected : []* Pipe {
530+ expected : []Pipe {
531531 {fromPos : 1 , toPos : 1 , fromHash : pool ("root" ), toHash : pool (models .EmptyTreeCommitHash ), kind : STARTS , style : style .FgDefault },
532532 },
533533 },
0 commit comments