github.com/vmpartner/bitmex@v1.1.0/config/config_test.go (about) 1 package config 2 3 import ( 4 "testing" 5 ) 6 7 func TestGetConfig(t *testing.T) { 8 config := LoadConfig("../config.json") 9 if config.Host == "" { 10 t.Error("No config") 11 } 12 if config.Key == "" { 13 t.Error("No config") 14 } 15 if config.Secret == "" { 16 t.Error("No config") 17 } 18 } 19 20 func TestGetMasterConfig(t *testing.T) { 21 config := LoadMasterConfig("../config.json") 22 if config.Master.Host == "" { 23 t.Error("No config") 24 } 25 }