mirror of
https://gitlab.com/pulsechaincom/prysm-pulse.git
synced 2025-01-04 00:44:27 +00:00
0544dd1f8e
* cmd tests * deposit util tests * feature config tests * hashutil tests * htr util tests * interop tests * ip util tests
19 lines
473 B
Go
19 lines
473 B
Go
package featureconfig
|
|
|
|
import (
|
|
"reflect"
|
|
"strings"
|
|
"testing"
|
|
|
|
"github.com/prysmaticlabs/prysm/shared/testutil/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."))
|
|
}
|
|
}
|