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

Function TestFastSyncConfigValidateBasic

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

Source from the content-addressed store, hash-verified

129}
130
131func TestFastSyncConfigValidateBasic(t *testing.T) {
132 cfg := TestFastSyncConfig()
133 assert.NoError(t, cfg.ValidateBasic())
134
135 // tamper with version
136 cfg.Version = "v1"
137 assert.NoError(t, cfg.ValidateBasic())
138
139 cfg.Version = "invalid"
140 assert.Error(t, cfg.ValidateBasic())
141}
142
143//nolint:lll
144func TestConsensusConfig_ValidateBasic(t *testing.T) {

Callers

nothing calls this directly

Calls 3

TestFastSyncConfigFunction · 0.85
ValidateBasicMethod · 0.65
ErrorMethod · 0.65

Tested by

no test coverage detected