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

Function TestConfig

config/config.go:99–112  ·  view source on GitHub ↗

TestConfig returns a configuration that can be used for testing

()

Source from the content-addressed store, hash-verified

97
98// TestConfig returns a configuration that can be used for testing
99func 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
115func (cfg *Config) SetRoot(root string) *Config {

Callers 1

ResetTestRootWithChainIDFunction · 0.85

Calls 10

TestBaseConfigFunction · 0.85
TestRPCConfigFunction · 0.85
TestP2PConfigFunction · 0.85
TestMempoolConfigFunction · 0.85
TestStateSyncConfigFunction · 0.85
TestFastSyncConfigFunction · 0.85
TestConsensusConfigFunction · 0.85
TestStorageConfigFunction · 0.85
TestTxIndexConfigFunction · 0.85

Tested by

no test coverage detected