Skip to content

Commit

Permalink
make format
Browse files Browse the repository at this point in the history
  • Loading branch information
adatzer committed Jun 17, 2024
1 parent 5106cbb commit 7fc76a5
Showing 1 changed file with 8 additions and 8 deletions.
16 changes: 8 additions & 8 deletions pkg/transform/mapper_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -415,9 +415,9 @@ func TestJQRunFunction_errors(t *testing.T) {

func TestJQMapperConfigFunction(t *testing.T) {
testCases := []struct {
Scenario string
JQCommand string
Error error
Scenario string
JQCommand string
Error error
}{
{
Scenario: "compile_error",
Expand All @@ -426,12 +426,12 @@ func TestJQMapperConfigFunction(t *testing.T) {
foo: something_undefined
}
`,
Error: errors.New("error compiling jq query"),
Error: errors.New("error compiling jq query"),
},
{
Scenario: "parsing_error",
Scenario: "parsing_error",
JQCommand: `^`,
Error: errors.New("error parsing jq command"),
Error: errors.New("error parsing jq command"),
},
}

Expand All @@ -440,9 +440,9 @@ func TestJQMapperConfigFunction(t *testing.T) {
assert := assert.New(t)

jqCfg := &JQMapperConfig{
JQCommand: tt.JQCommand,
JQCommand: tt.JQCommand,
RunTimeout: 5,
SpMode: false,
SpMode: false,
}

transFun, err := jqMapperConfigFunction(jqCfg)
Expand Down

0 comments on commit 7fc76a5

Please sign in to comment.