Documentation
¶
Index ¶
- func BasicDATest(t *testing.T, da da.DA)
- func CheckErrors(t *testing.T, da da.DA)
- func ConcurrentReadWriteTest(t *testing.T, da da.DA)
- func GetIDsTest(t *testing.T, da da.DA)
- func RunDATestSuite(t *testing.T, d da.DA)
- func StartMockServer()
- type Blob
- type BlocksResponse
- type DataTransactions
- type ID
- type SubmitRequest
- type SubmitResponse
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func BasicDATest ¶
BasicDATest tests round trip of messages to DA and back.
func CheckErrors ¶
CheckErrors ensures that errors are handled properly by DA.
func ConcurrentReadWriteTest ¶
ConcurrentReadWriteTest tests the use of mutex lock in DummyDA by calling separate methods that use `d.data` and making sure there's no race conditions.
func RunDATestSuite ¶
RunDATestSuite runs all tests against given DA
func StartMockServer ¶
func StartMockServer()
StartMockServer starts a mock server for testing purpose
Types ¶
type BlocksResponse ¶
type BlocksResponse struct { BlockNumber uint32 `json:"block_number"` DataTransactions []DataTransactions `json:"data_transactions"` }
BlocksResponse represents the structure of a response containing blocks information.
type DataTransactions ¶
DataTransactions represents data transactions within the block.
type SubmitRequest ¶
type SubmitRequest struct {
Data string `json:"data"`
}
SubmitRequest represents a request to submit data.
Click to show internal directories.
Click to hide internal directories.