filter: benchmark: error checking for write function update descriptions

This commit is contained in:
Ella Pietraroia 2020-02-07 11:24:36 +10:30
parent f3df9f51f8
commit 96ec7003db
2 changed files with 13 additions and 0 deletions

View File

@ -143,8 +143,15 @@ func BenchmarkDifference(b *testing.B) {
>>>>>>> 450df394... filter: benchmark: remove \n from log
for n := 0; n < b.N; n++ {
for _, x := range testPackets {
<<<<<<< HEAD
f.Write(x)
>>>>>>> 31ccc30a... benchmark testing file
=======
_, err := f.Write(x)
if err != nil {
b.Fatalf("cannot write to diff filter: %v#", err)
}
>>>>>>> 3800faf9... filter: benchmark: error checking for write function update descriptions
}
}
}

View File

@ -1,5 +1,6 @@
/*
DESCRIPTION
<<<<<<< HEAD
<<<<<<< HEAD
tests.go contains 15 JPEG frames in hex used for testing in filter_test.go.
These are used to test the benchmarking for the filters found in this
@ -9,6 +10,11 @@ DESCRIPTION
These are used to test the benchmarking for the filters found in this
folder, the output of the filters can be found in testout/test_outFILTER.mjpeg
>>>>>>> 03d46b19... filter: benchmark: chaning descriptions
=======
tests.go contains 15 JPEG frames in hex used for testing in filter_test.go.
These are used to test the benchmarking for the filters found in this
folder, the output of the filters can be found in testout/test_outFILTER.mjpeg
>>>>>>> 3800faf9... filter: benchmark: error checking for write function update descriptions
AUTHOR
Ella Pietraroia <ella@ausocean.org>