Add fuzz tests for storage_fs (#601)

This commit uses native go fuzzing to fuzz test implementations
of storage in storage_fs.

moved fuzzing testdata for storage_fs in separate repo

added make target and script for importing fuzz data and running all fuzz tests

Signed-off-by: Alex Stan <alexandrustan96@yahoo.ro>
This commit is contained in:
alexstan12
2022-07-27 20:37:55 +03:00
committed by GitHub
parent b5f27c5b50
commit 16e9822c7f
6 changed files with 870 additions and 12 deletions
+4
View File
@@ -191,6 +191,10 @@ func TestStorageAPIs(t *testing.T) {
So(err, ShouldNotBeNil)
So(bupload, ShouldEqual, -1)
bupload, err = imgStore.GetBlobUpload("hi", " \255")
So(err, ShouldNotBeNil)
So(bupload, ShouldEqual, -1)
bupload, err = imgStore.GetBlobUpload("test", upload)
So(err, ShouldBeNil)
So(bupload, ShouldBeGreaterThanOrEqualTo, 0)