Skip to content

Commit

Permalink
Add test to check interface implementation
Browse files Browse the repository at this point in the history
  • Loading branch information
dimartiro committed Feb 18, 2025
1 parent cf35921 commit 17e4e54
Showing 1 changed file with 18 additions and 0 deletions.
18 changes: 18 additions & 0 deletions internal/client/client_adapter_test.go
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
// Copyright 2025 ChainSafe Systems (ON)
// SPDX-License-Identifier: LGPL-3.0-only

package client

import (
"testing"

"github.com/ChainSafe/gossamer/dot/state"
"github.com/ChainSafe/gossamer/internal/primitives/core/hash"
"github.com/ChainSafe/gossamer/internal/primitives/runtime"
"github.com/ChainSafe/gossamer/internal/primitives/runtime/generic"
)

func TestBlockStateImplemented(t *testing.T) {
var _ state.BlockState = &ClientAdapter[hash.H256,
runtime.BlakeTwo256, uint64, runtime.OpaqueExtrinsic, *generic.Header[uint64, hash.H256, runtime.BlakeTwo256]]{}
}

0 comments on commit 17e4e54

Please sign in to comment.