synapsecns/sanguine

View on GitHub
ethergo/backends/base/keystore_test.go

Summary

Maintainability
A
0 mins
Test Coverage
package base_test

import (
    . "github.com/stretchr/testify/assert"
    "github.com/synapsecns/sanguine/ethergo/backends/base"
    "github.com/synapsecns/sanguine/ethergo/mocks"
    "testing"
)

func TestStoreGetAccount(t *testing.T) {
    inMemoryKeyStore := base.NewInMemoryKeyStore()

    key := mocks.MockAccount(t)

    inMemoryKeyStore.Store(key)

    retreivedKey := inMemoryKeyStore.GetAccount(key.Address)
    Equal(t, retreivedKey, key)
}