Add mock EthClient for testing

This commit is contained in:
arnaucube
2020-08-31 09:25:47 +02:00
parent ddb5604629
commit c523b4af70
6 changed files with 159 additions and 2 deletions

14
eth/client_test.go Normal file
View File

@@ -0,0 +1,14 @@
package eth
import (
"testing"
"github.com/stretchr/testify/require"
)
func TestClientInterface(t *testing.T) {
var c ClientInterface
client := NewClient(nil, nil, nil, nil)
c = client
require.NotNil(t, c)
}