package paramtable import ( "testing" "github.com/stretchr/testify/assert" ) func TestHTTPConfig_Init(t *testing.T) { params := ComponentParam{} params.Init(NewBaseTable(SkipRemote(true))) cfg := ¶ms.HTTPCfg assert.Equal(t, cfg.Enabled.GetAsBool(), true) assert.Equal(t, cfg.DebugMode.GetAsBool(), false) assert.Equal(t, cfg.Port.GetValue(), "") assert.Equal(t, cfg.AcceptTypeAllowInt64.GetValue(), "false") assert.Equal(t, cfg.EnablePprof.GetAsBool(), true) }