Skip to content

Commit 5eb7dfe

Browse files
committed
style(speculation): gofmt widened Score test stubs
1 parent 8d345c0 commit 5eb7dfe

2 files changed

Lines changed: 6 additions & 2 deletions

File tree

submitqueue/extension/speculation/generator/bestfirst/bestfirst_test.go

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -155,7 +155,9 @@ func (errScorer) Score(context.Context, entity.Batch, entity.SpeculationPathSet)
155155
// constScorer scores every batch identically, regardless of ID.
156156
type constScorer struct{ v float64 }
157157

158-
func (c constScorer) Score(context.Context, entity.Batch, entity.SpeculationPathSet) (float64, error) { return c.v, nil }
158+
func (c constScorer) Score(context.Context, entity.Batch, entity.SpeculationPathSet) (float64, error) {
159+
return c.v, nil
160+
}
159161

160162
// wideHead builds one Speculating head over n unresolved dependencies, each at a
161163
// distinct score so no two combinations tie.

submitqueue/extension/speculation/speculator/standard/standard_test.go

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -47,7 +47,9 @@ func assumptionFor(p entity.SpeculationPath, dep string) entity.DependencyAssump
4747
// constScorer is a minimal scorer.Scorer that scores every batch identically.
4848
type constScorer struct{ v float64 }
4949

50-
func (c constScorer) Score(context.Context, entity.Batch, entity.SpeculationPathSet) (float64, error) { return c.v, nil }
50+
func (c constScorer) Score(context.Context, entity.Batch, entity.SpeculationPathSet) (float64, error) {
51+
return c.v, nil
52+
}
5153

5254
func TestComposed_EndToEnd_NaivePair(t *testing.T) {
5355
batches := []entity.Batch{

0 commit comments

Comments
 (0)