()
| 167 | } |
| 168 | |
| 169 | func (s *stubBPService) Init() { |
| 170 | s.blockMap = make(map[uint32]*blockInfo) |
| 171 | s.blockMap[0] = &blockInfo{ |
| 172 | c: 0, |
| 173 | h: 0, |
| 174 | block: &testEventBlocks, |
| 175 | profile: testEventProfiles, |
| 176 | } |
| 177 | s.blockMap[1] = &blockInfo{ |
| 178 | c: 1, |
| 179 | h: 1, |
| 180 | block: &testOddBlocks, |
| 181 | profile: testOddProfiles, |
| 182 | } |
| 183 | atomic.StoreUint32(&s.count, 0) |
| 184 | } |
| 185 | |
| 186 | func initNode() (cleanupFunc func(), server *rpc.Server, err error) { |
| 187 | var d string |
no outgoing calls
no test coverage detected