func TestDescription(t *testing.T) { var p pair.Pair for _, tt := range table { p = pair.New(tt.a, tt.b) assert.Equal(t, tt.desc, p.Description()) } }
func (r roundImpl) pairs() (pairs []pair.Pair) { var a, b *integrations.Author var w bool for x := 0; x < r.authors.Len(); x += 2 { a = new(integrations.Author) b = new(integrations.Author) if a, w = r.authors.Index(x); !w { if b, w = r.authors.Index(x + 1); !w { pairs = append(pairs, pair.New(a, b)) } else { pairs = append(pairs, pair.New(a, nil)) } } } return }