Skip to content

Commit

Permalink
Fix lint: fieldalignment error
Browse files Browse the repository at this point in the history
  • Loading branch information
dojutsu-user committed Sep 7, 2024
1 parent 22b9490 commit 40f3505
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions binder/mapping_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -33,34 +33,34 @@ func Test_EqualFieldType(t *testing.T) {

func Test_ParseParamSquareBrackets(t *testing.T) {
tests := []struct {
err error
input string
expected string
err error
}{
{
err: nil,
input: "foo[bar]",
expected: "foo.bar",
err: nil,
},
{
err: nil,
input: "foo[bar][baz]",
expected: "foo.bar.baz",
err: nil,
},
{
err: errors.New("unmatched brackets"),
input: "foo[bar",
expected: "",
err: errors.New("unmatched brackets"),
},
{
err: errors.New("unmatched brackets"),
input: "foo[bar][baz",
expected: "",
err: errors.New("unmatched brackets"),
},
{
err: errors.New("unmatched brackets"),
input: "foo]bar[",
expected: "",
err: errors.New("unmatched brackets"),
},
}

Expand Down

0 comments on commit 40f3505

Please sign in to comment.