mirror of
https://github.com/hanzozt/zt.git
synced 2026-11-03 05:01:58 +00:00
- Repo names: ziti-* → zt-* - Go modules: github.com/hanzozt/ziti → github.com/hanzozt/zt - Docker images: hanzozt/ziti-* → hanzozt/zt-* - C/Java/JS symbols: ziti_* → zt_* - File and directory names updated
23 lines
539 B
Go
23 lines
539 B
Go
package loop3_pb
|
|
|
|
const (
|
|
BlockTypeRandomHashed = "random-hashed"
|
|
BlockTypeSequential = "sequential"
|
|
)
|
|
|
|
func (test *Test) IsRxRandomHashed() bool {
|
|
return test.RxBlockType == "" || test.RxBlockType == BlockTypeRandomHashed
|
|
}
|
|
|
|
func (test *Test) IsRxSequential() bool {
|
|
return test.RxBlockType == BlockTypeSequential
|
|
}
|
|
|
|
func (test *Test) IsTxRandomHashed() bool {
|
|
return test.TxBlockType == "" || test.TxBlockType == BlockTypeRandomHashed
|
|
}
|
|
|
|
func (test *Test) IsTxSequential() bool {
|
|
return test.TxBlockType == BlockTypeSequential
|
|
}
|