Lines Matching refs:counts
21 func (c *counterOutput) StartAction(action *Action, counts Counts) {
22 *c = counterOutput(counts)
24 func (c *counterOutput) FinishAction(result ActionResult, counts Counts) {
25 *c = counterOutput(counts)
35 func (c counterOutput) Expect(t *testing.T, counts Counts) {
36 if Counts(c) == counts {
41 if c.TotalActions != counts.TotalActions {
42 t.Errorf("Expected %d total edges, but got %d", counts.TotalActions, c.TotalActions)
44 if c.RunningActions != counts.RunningActions {
45 t.Errorf("Expected %d running edges, but got %d", counts.RunningActions, c.RunningActions)
47 if c.StartedActions != counts.StartedActions {
48 t.Errorf("Expected %d started edges, but got %d", counts.StartedActions, c.StartedActions)
50 if c.FinishedActions != counts.FinishedActions {
51 t.Errorf("Expected %d finished edges, but got %d", counts.FinishedActions, c.FinishedActions)
57 counts := &counterOutput{}
58 status.AddOutput(counts)
66 counts.Expect(t, Counts{
75 counts.Expect(t, Counts{
85 counts.Expect(t, Counts{
94 counts.Expect(t, Counts{
105 counts := &counterOutput{}
106 status.AddOutput(counts)
122 counts.Expect(t, Counts{
133 counts := &counterOutput{}
134 status.AddOutput(counts)
142 counts.Expect(t, Counts{
153 counts := &counterOutput{}
154 status.AddOutput(counts)
165 counts.Expect(t, Counts{