mirror of
https://github.com/luxfi/proto.git
synced 2026-10-30 15:21:09 +00:00
Adds .hanzo/workflows/cicd.yml calling the canonical pipeline and drops the GitHub-hosted workflows it replaces. Lands here because this is where the repo is written — git.hanzo.ai is upstream and github.com is its push mirror, so the same change made on github.com never reaches the runner fleet.
32 lines
710 B
Go
32 lines
710 B
Go
// Copyright (C) 2019-2025, Lux Industries Inc. All rights reserved.
|
|
// See the file LICENSE for licensing terms.
|
|
|
|
package warp_test
|
|
|
|
import (
|
|
"testing"
|
|
|
|
"github.com/stretchr/testify/require"
|
|
|
|
"github.com/luxfi/constants"
|
|
"github.com/luxfi/crypto/bls/signer/localsigner"
|
|
"github.com/luxfi/ids"
|
|
"github.com/luxfi/proto/p/warp"
|
|
"github.com/luxfi/proto/p/warp/signertest"
|
|
)
|
|
|
|
func TestSigner(t *testing.T) {
|
|
for name, test := range signertest.SignerTests {
|
|
t.Run(name, func(t *testing.T) {
|
|
sk, err := localsigner.New()
|
|
require.NoError(t, err)
|
|
|
|
chainID := ids.GenerateTestID()
|
|
s := warp.NewSigner(sk, constants.UnitTestID, chainID)
|
|
|
|
test(t, s, sk, constants.UnitTestID, chainID)
|
|
})
|
|
}
|
|
}
|
|
|