(t *testing.T)
| 126 | } |
| 127 | |
| 128 | func 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 | |
| 140 | func TestConsensusConfig_ValidateBasic(t *testing.T) { |
| 141 | testcases := map[string]struct { |
nothing calls this directly
no test coverage detected
searching dependent graphs…