mirror of
https://gitlab.com/pulsechaincom/prysm-pulse.git
synced 2025-01-09 19:21:19 +00:00
fa01ee5eba
* 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>
22 lines
364 B
Go
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
|
|
}
|