MCPcopy Create free account
hub / github.com/DeAI-Artist/Linkis / TestConfigValidateBasic

Function TestConfigValidateBasic

config/config_test.go:33–40  ·  view source on GitHub ↗
(t *testing.T)

Source from the content-addressed store, hash-verified

31}
32
33func TestConfigValidateBasic(t *testing.T) {
34 cfg := DefaultConfig()
35 assert.NoError(t, cfg.ValidateBasic())
36
37 // tamper with timeout_propose
38 cfg.Consensus.TimeoutPropose = -10 * time.Second
39 assert.Error(t, cfg.ValidateBasic())
40}
41
42func TestTLSConfiguration(t *testing.T) {
43 assert := assert.New(t)

Callers

nothing calls this directly

Calls 3

DefaultConfigFunction · 0.70
ValidateBasicMethod · 0.65
ErrorMethod · 0.65

Tested by

no test coverage detected