Linter fixes PR 3 (#4415)

* Linter fixes

* fix(bsr): update test to register TEST protocol once

---------

Co-authored-by: Damian Debkowski <damian.debkowski@hashicorp.com>
This commit is contained in:
Jeff MitchellandDamian Debkowski authored and GitHub committed 2024-02-16 08:30:16 -05:00
1 parent e95eda7ca2
commit 35cef97bd4
119 files changed
+365 -300

No files matched your search

+1 -1
View File
@@ -4,7 +4,7 @@
package subtypes
// UnknownSubtypeIDError is an error type that describes an invalid
// resource sub-type identifer. For example, this authentication sub-type
// resource sub-type identifier. For example, this authentication sub-type
// ID "ampwd_1234567890" is an error because the prefix "ampwd" is invalid.
type UnknownSubtypeIDError struct {
// ID is the resource identifier
+4 -4
View File
@@ -597,7 +597,7 @@ func TestTransformResponseAttributes(t *testing.T) {
}
func TestCustomTransformRequest(t *testing.T) {
RegisterRequestTransformationFunc(
require.NoError(t, RegisterRequestTransformationFunc(
&attribute.TestCustomTransformation{},
func(_ context.Context, m proto.Message) error {
msg, ok := m.(*attribute.TestCustomTransformation)
@@ -612,7 +612,7 @@ func TestCustomTransformRequest(t *testing.T) {
}
return nil
},
)
))
request := &attribute.TestCustomTransformation{
SomeRandomId: "some_random_id",
SecondaryId: "secondary_id",
@@ -641,7 +641,7 @@ func TestCustomTransformRequest(t *testing.T) {
}
func TestCustomTransformResponse(t *testing.T) {
RegisterResponseTransformationFunc(
require.NoError(t, RegisterResponseTransformationFunc(
&attribute.TestCustomTransformation{},
func(_ context.Context, m proto.Message) error {
msg, ok := m.(*attribute.TestCustomTransformation)
@@ -655,7 +655,7 @@ func TestCustomTransformResponse(t *testing.T) {
}
return nil
},
)
))
response := &attribute.TestCustomTransformation{
SomeRandomId: "some_random_id",
SecondaryId: "secondary_id",