(t *testing.T)
| 30 | ) |
| 31 | |
| 32 | func TestDefaultGenesisBlock(t *testing.T) { |
| 33 | runmode := configs.GetRunMode() |
| 34 | configs.SetRunMode(configs.Mainnet) |
| 35 | block := DefaultGenesisBlock().ToBlock(nil) |
| 36 | if block.Hash() != MainnetGenesisHash { |
| 37 | t.Errorf("wrong mainnet genesis hash, got %v, want %v", block.Hash().Hex(), MainnetGenesisHash.Hex()) |
| 38 | } |
| 39 | configs.SetRunMode(runmode) |
| 40 | } |
| 41 | |
| 42 | func TestSetupGenesis(t *testing.T) { |
| 43 | runmode := configs.GetRunMode() |
nothing calls this directly
no test coverage detected