From 3c55321c68e16d05fe54e6e5748bb9525a3ed769 Mon Sep 17 00:00:00 2001 From: Diego Date: Tue, 18 Feb 2025 13:31:23 -0300 Subject: [PATCH] Add test to check interface implementation --- internal/client/client_adapter_test.go | 18 ++++++++++++++++++ 1 file changed, 18 insertions(+) create mode 100644 internal/client/client_adapter_test.go diff --git a/internal/client/client_adapter_test.go b/internal/client/client_adapter_test.go new file mode 100644 index 0000000000..4ddcef71fa --- /dev/null +++ b/internal/client/client_adapter_test.go @@ -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]]{} +}