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

Function TestBlockSyncConfigValidateBasic

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

Source from the content-addressed store, hash-verified

126}
127
128func TestBlockSyncConfigValidateBasic(t *testing.T) {
129 cfg := TestBlockSyncConfig()
130 assert.NoError(t, cfg.ValidateBasic())
131
132 // tamper with version
133 cfg.Version = "v2"
134 assert.Error(t, cfg.ValidateBasic())
135
136 cfg.Version = "invalid"
137 assert.Error(t, cfg.ValidateBasic())
138}
139
140func TestConsensusConfig_ValidateBasic(t *testing.T) {
141 testcases := map[string]struct {

Callers

nothing calls this directly

Calls 3

TestBlockSyncConfigFunction · 0.85
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…