(t *testing.T)
| 726 | } |
| 727 | |
| 728 | func TestFormatExchangeCurrency(t *testing.T) { |
| 729 | t.Parallel() |
| 730 | |
| 731 | var b Base |
| 732 | b.CurrencyPairs.UseGlobalFormat = true |
| 733 | b.CurrencyPairs.RequestFormat = ¤cy.PairFormat{ |
| 734 | Uppercase: true, |
| 735 | Delimiter: "-", |
| 736 | } |
| 737 | |
| 738 | actual, err := b.FormatExchangeCurrency(btcusdPair, asset.Spot) |
| 739 | require.NoError(t, err, "FormatExchangeCurrency must not error") |
| 740 | assert.Equal(t, "BTC-USD", actual.String(), "FormatExchangeCurrency should format pair correctly") |
| 741 | } |
| 742 | |
| 743 | func TestSetEnabled(t *testing.T) { |
| 744 | t.Parallel() |
nothing calls this directly
no test coverage detected