Skip to content

Commit e062d85

Browse files
Rename receiver and fix typo (#1379)
1 parent 0b7a7f3 commit e062d85

File tree

2 files changed

+13
-14
lines changed

2 files changed

+13
-14
lines changed

internal/cli/cmd/test.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -88,7 +88,7 @@ func NewTestCmd() *cobra.Command {
8888
// This PackageLoader instance is only used to resolve package references from the command line arguments.
8989
packageRefPl := parsing.NewPackageLoader(*env)
9090

91-
testRefs := []*schema.PackageRef{}
91+
var testRefs []*schema.PackageRef
9292
for _, l := range locs.Locations {
9393
pp, err := packageRefPl.LoadByName(ctx, l.AsPackageName())
9494
if err != nil {
@@ -101,7 +101,7 @@ func NewTestCmd() *cobra.Command {
101101
}
102102
}
103103
}
104-
// add package refernces
104+
// add package references
105105
testRefs = append(testRefs, locs.Refs...)
106106

107107
if len(testRefs) == 0 {

internal/testing/prepare.go

Lines changed: 11 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -42,19 +42,18 @@ type testDriver struct {
4242
compute.LocalScoped[deploy.PreparedDeployable]
4343
}
4444

45-
func (test *testDriver) Inputs() *compute.In {
45+
func (driver *testDriver) Inputs() *compute.In {
4646
return compute.Inputs().
47-
Str("testName", test.TestRef.Name).
48-
Stringer("testPkg", test.TestRef.AsPackageName()).
49-
Stringer("loc", test.Location).
50-
Proto("def", test.Definition).
51-
Proto("stack", test.Stack.Proto()).
52-
Proto("workspace", test.SealedContext.Workspace().Proto()).
53-
Proto("env", test.SealedContext.Environment()).
54-
Indigestible("planner", test.Planner).
55-
Indigestible("resources", test.Resources).
56-
Bool("debug", test.Debug)
57-
47+
Str("testName", driver.TestRef.Name).
48+
Stringer("testPkg", driver.TestRef.AsPackageName()).
49+
Stringer("loc", driver.Location).
50+
Proto("def", driver.Definition).
51+
Proto("stack", driver.Stack.Proto()).
52+
Proto("workspace", driver.SealedContext.Workspace().Proto()).
53+
Proto("env", driver.SealedContext.Environment()).
54+
Indigestible("planner", driver.Planner).
55+
Indigestible("resources", driver.Resources).
56+
Bool("debug", driver.Debug)
5857
}
5958

6059
func (driver *testDriver) Action() *tasks.ActionEvent {

0 commit comments

Comments
 (0)