prysm-pulse/validator/client/beacon-api/test-helpers/test_helpers.go
Patrice Vignola fa01ee5eba
Add REST implementation for Validator's ProposeBeaconBlock (#11731)
* WIP

* WIP

* WIP

* Add tests

* WIP

* Add more tests

* Address DeepSource errors

* Remove unused param

* Add more tests

* Address PR comments

* Address PR comments

* Fix formatting

* Remove unused parameter

* Fix TestLittleEndianBytesToBigInt

Co-authored-by: Radosław Kapka <rkapka@wp.pl>
2022-12-12 10:39:51 +00:00

22 lines
364 B
Go

package test_helpers
func FillByteSlice(sliceLength int, value byte) []byte {
bytes := make([]byte, sliceLength)
for index := range bytes {
bytes[index] = value
}
return bytes
}
func FillByteArraySlice(sliceLength int, value []byte) [][]byte {
bytes := make([][]byte, sliceLength)
for index := range bytes {
bytes[index] = value
}
return bytes
}