Skip to content

Commit

Permalink
feat(docs): gofmt tidy up
Browse files Browse the repository at this point in the history
  • Loading branch information
codingconcepts committed Sep 1, 2021
1 parent 603362e commit 0dff872
Showing 1 changed file with 10 additions and 10 deletions.
20 changes: 10 additions & 10 deletions lib/util/text/env_vars_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -41,16 +41,16 @@ func TestEnvSwapping(t *testing.T) {
os.Setenv("BENTHOS.TEST.BAR", "test\nbar")

tests := map[string]string{
"foo ${BENTHOS_TEST_FOO:bar} baz": "foo bar baz",
"foo ${BENTHOS.TEST.FOO:bar} baz": "foo testfoo baz",
"foo ${BENTHOS.TEST.FOO} baz": "foo testfoo baz",
"foo ${BENTHOS_TEST_FOO:http://bar.com} baz": "foo http://bar.com baz",
"foo ${BENTHOS_TEST_FOO:http://bar.com?wat=nuh} baz": "foo http://bar.com?wat=nuh baz",
"foo ${BENTHOS_TEST_FOO:http://bar.com#wat} baz": "foo http://bar.com#wat baz",
"foo ${BENTHOS_TEST_FOO:tcp://*:2020} baz": "foo tcp://*:2020 baz",
"foo ${BENTHOS_TEST_FOO:bar} http://bar.com baz": "foo bar http://bar.com baz",
"foo ${BENTHOS_TEST_FOO} http://bar.com baz": "foo http://bar.com baz",
"foo ${BENTHOS_TEST_FOO:[email protected]} baz": "foo [email protected] baz",
"foo ${BENTHOS_TEST_FOO:bar} baz": "foo bar baz",
"foo ${BENTHOS.TEST.FOO:bar} baz": "foo testfoo baz",
"foo ${BENTHOS.TEST.FOO} baz": "foo testfoo baz",
"foo ${BENTHOS_TEST_FOO:http://bar.com} baz": "foo http://bar.com baz",
"foo ${BENTHOS_TEST_FOO:http://bar.com?wat=nuh} baz": "foo http://bar.com?wat=nuh baz",
"foo ${BENTHOS_TEST_FOO:http://bar.com#wat} baz": "foo http://bar.com#wat baz",
"foo ${BENTHOS_TEST_FOO:tcp://*:2020} baz": "foo tcp://*:2020 baz",
"foo ${BENTHOS_TEST_FOO:bar} http://bar.com baz": "foo bar http://bar.com baz",
"foo ${BENTHOS_TEST_FOO} http://bar.com baz": "foo http://bar.com baz",
"foo ${BENTHOS_TEST_FOO:[email protected]} baz": "foo [email protected] baz",
"foo ${} baz": "foo ${} baz",
"foo ${BENTHOS_TEST_FOO:foo,bar} baz": "foo foo,bar baz",
"foo ${BENTHOS_TEST_FOO} baz": "foo baz",
Expand Down

0 comments on commit 0dff872

Please sign in to comment.