(idxT ...int)
| 167 | } |
| 168 | |
| 169 | func (nts *NetworkTestSuite) Validator(idxT ...int) *network.Validator { |
| 170 | idx := 0 |
| 171 | if len(idxT) != 0 { |
| 172 | if len(idxT) > 1 { |
| 173 | nts.T().Fatal("pass zero or one arguments to Validator()") |
| 174 | } |
| 175 | idx = idxT[0] |
| 176 | |
| 177 | if idx > len(nts.network.Validators) { |
| 178 | nts.T().Fatal("not enough validators for each test") |
| 179 | } |
| 180 | } |
| 181 | return nts.network.Validators[idx] |
| 182 | } |
| 183 | |
| 184 | func (nts *NetworkTestSuite) WalletNameForTest() string { |
| 185 | return fmt.Sprintf("wallet%d", nts.testIdx) |
no outgoing calls
no test coverage detected