@@ -21,7 +21,7 @@ func TestInitializeSootWrapper(t *testing.T) {
2121
2222func TestInitializeSootWrapperOpenEmbedError (t * testing.T ) {
2323 errString := "fs open embed error"
24- fsMock := ioTestData.FileSystemMock {FsOpenEmbedError : fmt .Errorf (errString )}
24+ fsMock := ioTestData.FileSystemMock {FsOpenEmbedError : fmt .Errorf (errString )} //nolint
2525 tempDir , err := fsMock .MkdirTemp (".tmp" )
2626 assert .NoError (t , err )
2727 _ , err = initializeSootWrapper (fsMock , tempDir )
@@ -31,7 +31,7 @@ func TestInitializeSootWrapperOpenEmbedError(t *testing.T) {
3131
3232func TestInitializeSootWrapperFsReadAllError (t * testing.T ) {
3333 errString := "fs read all error"
34- fsMock := ioTestData.FileSystemMock {FsReadAllError : fmt .Errorf (errString )}
34+ fsMock := ioTestData.FileSystemMock {FsReadAllError : fmt .Errorf (errString )} //nolint
3535 tempDir , err := fsMock .MkdirTemp (".tmp" )
3636 assert .NoError (t , err )
3737 _ , err = initializeSootWrapper (fsMock , tempDir )
@@ -41,7 +41,7 @@ func TestInitializeSootWrapperFsReadAllError(t *testing.T) {
4141
4242func TestInitializeSootWrapperFsWriteFileError (t * testing.T ) {
4343 errString := "fs write file error"
44- fsMock := ioTestData.FileSystemMock {FsWriteFileError : fmt .Errorf (errString )}
44+ fsMock := ioTestData.FileSystemMock {FsWriteFileError : fmt .Errorf (errString )} //nolint
4545 tempDir , err := fsMock .MkdirTemp (".tmp" )
4646 assert .NoError (t , err )
4747 _ , err = initializeSootWrapper (fsMock , tempDir )
@@ -58,7 +58,7 @@ func TestDownloadSootWrapper(t *testing.T) {
5858
5959func TestDownloadSootWrapperMkdirTempError (t * testing.T ) {
6060 errString := "mkdir temp error"
61- fsMock := ioTestData.FileSystemMock {MkdirTempError : fmt .Errorf (errString )}
61+ fsMock := ioTestData.FileSystemMock {MkdirTempError : fmt .Errorf (errString )} //nolint
6262 arcMock := ioTestData.ArchiveMock {}
6363 err := downloadSootWrapper (arcMock , fsMock , "soot-wrapper.jar" , "11" )
6464 assert .Error (t , err )
@@ -67,7 +67,7 @@ func TestDownloadSootWrapperMkdirTempError(t *testing.T) {
6767
6868func TestDownloadSootWrapperCreateError (t * testing.T ) {
6969 errString := "create error"
70- fsMock := ioTestData.FileSystemMock {CreateError : fmt .Errorf (errString )}
70+ fsMock := ioTestData.FileSystemMock {CreateError : fmt .Errorf (errString )} //nolint
7171 arcMock := ioTestData.ArchiveMock {}
7272 err := downloadSootWrapper (arcMock , fsMock , "soot-wrapper.jar" , "11" )
7373 assert .Error (t , err )
@@ -77,7 +77,7 @@ func TestDownloadSootWrapperCreateError(t *testing.T) {
7777func TestDownloadSootWrapperUnzipError (t * testing.T ) {
7878 errString := "create error"
7979 fsMock := ioTestData.FileSystemMock {}
80- arcMock := ioTestData.ArchiveMock {UnzipFileError : fmt .Errorf (errString )}
80+ arcMock := ioTestData.ArchiveMock {UnzipFileError : fmt .Errorf (errString )} //nolint
8181 err := downloadSootWrapper (arcMock , fsMock , "soot-wrapper.jar" , "11" )
8282 assert .Error (t , err )
8383 assert .Equal (t , err .Error (), errString )
@@ -165,7 +165,7 @@ func TestGetSootWrapperInitialize(t *testing.T) {
165165
166166func TestGetSootWrapperMkdirError (t * testing.T ) {
167167 errString := "mkdir error"
168- fsMock := ioTestData.FileSystemMock {MkdirError : fmt .Errorf (errString ), StatError : fmt .Errorf ("" ), IsNotExistBool : true }
168+ fsMock := ioTestData.FileSystemMock {MkdirError : fmt .Errorf (errString ), StatError : fmt .Errorf ("" ), IsNotExistBool : true } //nolint
169169 arcMock := ioTestData.ArchiveMock {}
170170 sootHandler := SootHandler {}
171171 _ , err := sootHandler .GetSootWrapper ("11" , fsMock , arcMock )
0 commit comments