mirror of
https://gitlab.com/pulsechaincom/prysm-pulse.git
synced 2025-01-09 19:21:19 +00:00
1065617087
* first commit, remote att types * no more agg attestation proto * regen mock * only attestations * proto * att process * fix att references * more tests passing * use att protos * complete * Update dependency com_github_deckarep_golang_set to v1 (#1159) * Update dependency com_github_edsrzf_mmap_go to v1 (#1160) * Update dependency com_github_go_stack_stack to v1 (#1161) * Update dependency com_github_rs_cors to v1 (#1162) * Update dependency in_gopkg_urfave_cli_v1 to v1 (#1163) * change visibility
16 lines
294 B
Go
16 lines
294 B
Go
package attestations
|
|
|
|
import (
|
|
"testing"
|
|
)
|
|
|
|
func TestContainsValidator(t *testing.T) {
|
|
if !ContainsValidator([]byte{7}, []byte{4}) {
|
|
t.Error("Attestation should contain validator")
|
|
}
|
|
|
|
if ContainsValidator([]byte{7}, []byte{8}) {
|
|
t.Error("Attestation should not contain validator")
|
|
}
|
|
}
|