(n, startIndex int)
| 251 | } |
| 252 | |
| 253 | func (self *Shell) CreateNCommitsStartingAt(n, startIndex int) *Shell { |
| 254 | for i := startIndex; i < startIndex+n; i++ { |
| 255 | self.CreateFileAndAdd( |
| 256 | fmt.Sprintf("file%02d.txt", i), |
| 257 | fmt.Sprintf("file%02d content", i), |
| 258 | ). |
| 259 | Commit(fmt.Sprintf("commit %02d", i)) |
| 260 | } |
| 261 | |
| 262 | return self |
| 263 | } |
| 264 | |
| 265 | // Only to be used in demos, because the list might change and we don't want |
| 266 | // tests to break when it does. |
no test coverage detected