maps: expansion of Key concept (#1349)

* moves everything to use single map keys, also breaks

* full rollout

* tests

* fix a little bug

* minor test fixups

* Fix Key use

* rm 🔑 from 🔑 struct name
This commit is contained in:
Scott
2023-10-04 09:19:41 +10:00
committed by GitHub
parent 033a72b61a
commit 91d699be9d
47 changed files with 1478 additions and 1339 deletions

View File

@@ -356,7 +356,7 @@ func TestSettingsPrint(t *testing.T) {
var unsupportedDefaultConfigExchanges = []string{
"itbit", // due to unsupported API
"poloniex", // outdated API // TODO remove once updated
"poloniex", // poloniex has dropped support for the API GCT has implemented //TODO: drop this when supported
}
func TestGetDefaultConfigurations(t *testing.T) {

View File

@@ -299,7 +299,7 @@ func TestCheckEventCondition(t *testing.T) {
}
m.m.Lock()
err = m.checkEventCondition(&m.events[0])
if err != nil && !strings.Contains(err.Error(), "no tickers for") {
if err != nil && !strings.Contains(err.Error(), "no tickers associated") {
t.Error(err)
} else if err == nil {
t.Error("expected error")