MCPcopy Create free account
hub / github.com/tendermint/tendermint / TestConfigValidateBasic

Function TestConfigValidateBasic

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

Source from the content-addressed store, hash-verified

28}
29
30func TestConfigValidateBasic(t *testing.T) {
31 cfg := DefaultConfig()
32 assert.NoError(t, cfg.ValidateBasic())
33
34 // tamper with timeout_propose
35 cfg.Consensus.TimeoutPropose = -10 * time.Second
36 assert.Error(t, cfg.ValidateBasic())
37}
38
39func TestTLSConfiguration(t *testing.T) {
40 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

Used in the wild real call sites across dependent graphs

searching dependent graphs…