(t *testing.T)
| 9 | ) |
| 10 | |
| 11 | func TestLoadConfig(t *testing.T) { |
| 12 | config := OffChainConfig{} |
| 13 | LoadConfig("../offChain.json", &config) |
| 14 | require.Equal(t, "BootstrapNode", config.NodeRole) |
| 15 | |
| 16 | config2 := OnChainConfig{} |
| 17 | LoadConfig("../onChain.json", &config2) |
| 18 | require.Equal(t, "ETH", config2.ChainConfigs[0].ChainType) |
| 19 | } |
| 20 | |
| 21 | func TestOffChainReadConfig(t *testing.T) { |
| 22 | config := OffChainConfig{} |
nothing calls this directly
no test coverage detected