Test: Internal exchange coverage (#1525)

* Test: Internal exchange coverage

* Tests: Rename exchange.TestInstance to Setup

This package function is either going to be imported and used as just exchange.Setup,
or more likely testexch.Setup.
This removes the Stutter of having
internal/testing/exchange.TestInstance which is implicit given the
package path
This commit is contained in:
Gareth Kirwan
2024-05-07 07:14:02 +02:00
committed by GitHub
parent ece58ebf6d
commit 93c2d0122b
9 changed files with 127 additions and 9 deletions

View File

@@ -20,7 +20,7 @@ var mockTests = false
func TestMain(m *testing.M) {
b = new(Binance)
if err := testexch.TestInstance(b); err != nil {
if err := testexch.Setup(b); err != nil {
log.Fatal(err)
}

View File

@@ -21,7 +21,7 @@ func TestMain(m *testing.M) {
}
b = new(Binance)
if err := testexch.TestInstance(b); err != nil {
if err := testexch.Setup(b); err != nil {
log.Fatal(err)
}