Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Clean up Go formatter suggestions #16973

Merged
merged 2 commits into from
Mar 1, 2022
Merged
Show file tree
Hide file tree
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
40 changes: 20 additions & 20 deletions sdks/go/pkg/beam/core/runtime/exec/sideinput_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -67,26 +67,26 @@ func TestNewSideInputAdapter(t *testing.T) {
}
for _, test := range tests {
t.Run(test.name, func(t *testing.T) {
adapter := NewSideInputAdapter(test.sid, test.sideInputID, test.c, nil)
adapterStruct, ok := adapter.(*sideInputAdapter)
if !ok {
t.Errorf("failed to convert interface to sideInputAdapter struct in test %v", test)
}
if got, want := adapterStruct.sid, test.sid; got != want {
t.Errorf("got SID %v, want %v", got, want)
}
if got, want := adapterStruct.sideInputID, test.sideInputID; got != want {
t.Errorf("got sideInputID %v, want %v", got, want)
}
if got, want := adapterStruct.c, test.c; got != want {
t.Errorf("got coder %v, want %v", got, want)
}
if got, want := reflect.TypeOf(adapterStruct.kc), reflect.TypeOf(test.kc); got != want {
t.Errorf("got ElementEncoder type %v, want %v", got, want)
}
if got, want := reflect.TypeOf(adapterStruct.ec), reflect.TypeOf(test.ec); got != want {
t.Errorf("got ElementDecoder type %v, want %v", got, want)
}
adapter := NewSideInputAdapter(test.sid, test.sideInputID, test.c, nil)
adapterStruct, ok := adapter.(*sideInputAdapter)
if !ok {
t.Errorf("failed to convert interface to sideInputAdapter struct in test %v", test)
}
if got, want := adapterStruct.sid, test.sid; got != want {
t.Errorf("got SID %v, want %v", got, want)
}
if got, want := adapterStruct.sideInputID, test.sideInputID; got != want {
t.Errorf("got sideInputID %v, want %v", got, want)
}
if got, want := adapterStruct.c, test.c; got != want {
t.Errorf("got coder %v, want %v", got, want)
}
if got, want := reflect.TypeOf(adapterStruct.kc), reflect.TypeOf(test.kc); got != want {
t.Errorf("got ElementEncoder type %v, want %v", got, want)
}
if got, want := reflect.TypeOf(adapterStruct.ec), reflect.TypeOf(test.ec); got != want {
t.Errorf("got ElementDecoder type %v, want %v", got, want)
}
})
}
}
Expand Down
2 changes: 1 addition & 1 deletion sdks/go/pkg/beam/util/harnessopts/cache.go
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@
// See the License for the specific language governing permissions and
// limitations under the License.

// Package harnessopts defines user-facing entrypoints into Beam hooks
// Package harnessopts defines user-facing entrypoints into Beam hooks
// affecting the SDK harness. Call these functions at any time before
// submitting your pipeline to a runner, for that pipeline's workers to be affected.
package harnessopts
Expand Down