prysm-pulse/beacon-chain/db/kv/execution_chain_test.go
terencechain d17996f8b0
Update to V4 🚀 (#12134)
* Update V3 from V4

* Fix build v3 -> v4

* Update ssz

* Update beacon_chain.pb.go

* Fix formatter import

* Update update-mockgen.sh comment to v4

* Fix conflicts. Pass build and tests

* Fix test
2023-03-17 18:52:56 +00:00

36 lines
656 B
Go

package kv
import (
"context"
"testing"
v2 "github.com/prysmaticlabs/prysm/v4/proto/prysm/v1alpha1"
)
func TestStore_SavePowchainData(t *testing.T) {
type args struct {
data *v2.ETH1ChainData
}
tests := []struct {
name string
args args
wantErr bool
}{
{
name: "nil data",
args: args{
data: nil,
},
wantErr: true,
},
}
for _, tt := range tests {
t.Run(tt.name, func(t *testing.T) {
store := setupDB(t)
if err := store.SaveExecutionChainData(context.Background(), tt.args.data); (err != nil) != tt.wantErr {
t.Errorf("SaveExecutionChainData() error = %v, wantErr %v", err, tt.wantErr)
}
})
}
}