TestConfig returns a configuration that can be used for testing
()
| 97 | |
| 98 | // TestConfig returns a configuration that can be used for testing |
| 99 | func TestConfig() *Config { |
| 100 | return &Config{ |
| 101 | BaseConfig: TestBaseConfig(), |
| 102 | RPC: TestRPCConfig(), |
| 103 | P2P: TestP2PConfig(), |
| 104 | Mempool: TestMempoolConfig(), |
| 105 | StateSync: TestStateSyncConfig(), |
| 106 | FastSync: TestFastSyncConfig(), |
| 107 | Consensus: TestConsensusConfig(), |
| 108 | Storage: TestStorageConfig(), |
| 109 | TxIndex: TestTxIndexConfig(), |
| 110 | Instrumentation: TestInstrumentationConfig(), |
| 111 | } |
| 112 | } |
| 113 | |
| 114 | // SetRoot sets the RootDir for all Config structs |
| 115 | func (cfg *Config) SetRoot(root string) *Config { |
no test coverage detected