Skip to content

Commit

Permalink
fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
mattrmiller committed Nov 22, 2017
1 parent 447637c commit 1f8659f
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 12 deletions.
4 changes: 2 additions & 2 deletions brconfig/env.go
Original file line number Diff line number Diff line change
Expand Up @@ -3,10 +3,10 @@ package brconfig

// Imports
import (
"github.com/mattrmiller/go-bedrock/brstrings"

"os"
"strings"

"github.com/mattrmiller/go-bedrock/brstrings"
)

// Environment as string.
Expand Down
20 changes: 10 additions & 10 deletions brconfig/env_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -13,16 +13,16 @@ import (
func TestEnvValues(tst *testing.T) {

// Set some values
os.Setenv("TEST_STRING_HELLO", "hello")
os.Setenv("TEST_BOOL_TRUE", "true")
os.Setenv("TEST_BOOL_FALSE", "false")
os.Setenv("TEST_BOOL_INVALID", "invalid value")
os.Setenv("TEST_FLOAT_1345", "1.345")
os.Setenv("TEST_FLOAT_INVALID", "invalid value")
os.Setenv("TEST_INT_80", "80")
os.Setenv("TEST_INT_INVALID", "invalid value")
os.Setenv("TEST_INT64_100", "100")
os.Setenv("TEST_INT64_INVALID", "invalid value")
_ = os.Setenv("TEST_STRING_HELLO", "hello")
_ = os.Setenv("TEST_BOOL_TRUE", "true")
_ = os.Setenv("TEST_BOOL_FALSE", "false")
_ = os.Setenv("TEST_BOOL_INVALID", "invalid value")
_ = os.Setenv("TEST_FLOAT_1345", "1.345")
_ = os.Setenv("TEST_FLOAT_INVALID", "invalid value")
_ = os.Setenv("TEST_INT_80", "80")
_ = os.Setenv("TEST_INT_INVALID", "invalid value")
_ = os.Setenv("TEST_INT64_100", "100")
_ = os.Setenv("TEST_INT64_INVALID", "invalid value")

// Test string
s := EnvAsString("TEST_STRING_HELLO")
Expand Down

0 comments on commit 1f8659f

Please sign in to comment.