Skip to content

Commit

Permalink
[TEST] runtime config to 100%
Browse files Browse the repository at this point in the history
  • Loading branch information
genofire committed Oct 5, 2017
1 parent 3649bdd commit 36d881b
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 0 deletions.
6 changes: 6 additions & 0 deletions runtime/config_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -36,4 +36,10 @@ func TestReadConfig(t *testing.T) {
assert.Len(dbs, 1, "more graphitedb are given")
graphitedb = dbs[0].(map[string]interface{})
assert.Equal(graphitedb["address"], "localhost:2003")

_, err = ReadConfigFile("testdata/config_failed.toml")
assert.Error(err, "not unmarshalable")

_, err = ReadConfigFile("testdata/adsa.toml")
assert.Error(err, "not found able")
}
1 change: 1 addition & 0 deletions runtime/testdata/config_failed.toml
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
asdas

0 comments on commit 36d881b

Please sign in to comment.