Documentation ¶
Index ¶
- type MockSOC
- func GenerateMockSOC(t *testing.T, data []byte) *MockSOC
- func GenerateMockSOCWithKey(t *testing.T, data []byte, privKey *ecdsa.PrivateKey) *MockSOC
- func GenerateMockSOCWithSpan(t *testing.T, data []byte) *MockSOC
- func GenerateMockSocWithSigner(t *testing.T, data []byte, signer crypto.Signer) *MockSOC
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type MockSOC ¶
MockSOC defines a mocked SOC with exported fields for easy testing.
func GenerateMockSOC ¶
GenerateMockSOC generates a valid mocked SOC from given data.
func GenerateMockSOCWithKey ¶ added in v2.2.0
GenerateMockSOCWithKey generates a valid mocked SOC from given data and key.
func GenerateMockSOCWithSpan ¶
GenerateMockSOC generates a valid mocked SOC from given chunk data (span + payload).
func GenerateMockSocWithSigner ¶ added in v2.2.0
GenerateMockSocWithSigner generates a valid mocked SOC from given data and signer.
Click to show internal directories.
Click to hide internal directories.