mirror of
https://github.com/OffchainLabs/prysm.git
synced 2026-01-09 21:38:05 -05:00
* Migrate Prysm repo to Offchain Labs organization ahead of Pectra upgrade v6 * Replace prysmaticlabs with OffchainLabs on general markdowns * Update mock * Gazelle and add mock.go to excluded generated mock file
19 lines
462 B
Go
19 lines
462 B
Go
package features
|
|
|
|
import (
|
|
"reflect"
|
|
"strings"
|
|
"testing"
|
|
|
|
"github.com/OffchainLabs/prysm/v6/testing/assert"
|
|
)
|
|
|
|
func TestDeprecatedFlags(t *testing.T) {
|
|
for _, f := range deprecatedFlags {
|
|
fv := reflect.ValueOf(f)
|
|
field := reflect.Indirect(fv).FieldByName("Hidden")
|
|
assert.Equal(t, false, !field.IsValid() || !field.Bool())
|
|
assert.Equal(t, false, !strings.Contains(reflect.Indirect(fv).FieldByName("Usage").String(), "DEPRECATED. DO NOT USE."))
|
|
}
|
|
}
|