From 40f35051333a658c029cbc261bafe73be9d59280 Mon Sep 17 00:00:00 2001 From: dojutsu-user Date: Sat, 7 Sep 2024 17:06:12 +0530 Subject: [PATCH] Fix lint: fieldalignment error --- binder/mapping_test.go | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/binder/mapping_test.go b/binder/mapping_test.go index af29b16c00..4a8432da19 100644 --- a/binder/mapping_test.go +++ b/binder/mapping_test.go @@ -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"), }, }