(filename string, blockNumbers []int)
| 86 | } |
| 87 | |
| 88 | func setupFile(filename string, blockNumbers []int) protocol.FileInfo { |
| 89 | // Create existing file |
| 90 | existingBlocks := make([]protocol.BlockInfo, len(blockNumbers)) |
| 91 | for i := range blockNumbers { |
| 92 | existingBlocks[i] = blocks[blockNumbers[i]] |
| 93 | } |
| 94 | |
| 95 | return protocol.FileInfo{ |
| 96 | Name: filename, |
| 97 | Blocks: existingBlocks, |
| 98 | } |
| 99 | } |
| 100 | |
| 101 | func createEmptyFileInfo(t *testing.T, name string, fs fs.Filesystem) protocol.FileInfo { |
| 102 | t.Helper() |
no outgoing calls
no test coverage detected