prysm-pulse/beacon-chain/db/kv/powchain_test.go
Raul Jordan 9145310647
Eliminate Proto V2 Namespace (#9297)
* get rid of v2 in prysm codebase

* replace block2

* builds

* terence comments

* gazelle
2021-07-28 21:23:44 +00:00

36 lines
641 B
Go

package kv
import (
"context"
"testing"
v2 "github.com/prysmaticlabs/prysm/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.SavePowchainData(context.Background(), tt.args.data); (err != nil) != tt.wantErr {
t.Errorf("SavePowchainData() error = %v, wantErr %v", err, tt.wantErr)
}
})
}
}