Add --input-file-dry-run option

Now you can get information about file content without performing the actual replay.
For example, it can tell you how many requests in your files, and how long it will take to replay them.
This commit is contained in:
Leonid Bugaev
2021-07-08 23:09:50 +03:00
parent 61b377d123
commit 8e76559b49
8 changed files with 75 additions and 21 deletions
+1 -1
View File
@@ -127,7 +127,7 @@ func TestInputFileFromS3(t *testing.T) {
<-output.closeCh
}
input := NewFileInput(fmt.Sprintf("s3://test-gor-eu/%d", rnd, 100), false)
input := NewFileInput(fmt.Sprintf("s3://test-gor-eu/%d", rnd), false, 100, false)
buf := make([]byte, 1000)
for i := 0; i <= 19999; i++ {