github.com/saucelabs/saucectl@v0.175.1/internal/mocks/download.go (about)

     1  package mocks
     2  
     3  // FakeArtifactDownloader defines a fake Downloader
     4  type FakeArtifactDownloader struct {
     5  	DownloadArtifactFn func(jobID, suiteName string) []string
     6  }
     7  
     8  // DownloadArtifact defines a fake function for FakeDownloader
     9  func (f *FakeArtifactDownloader) DownloadArtifact(jobID, suiteName string, realDevice bool) []string {
    10  	return f.DownloadArtifactFn(jobID, suiteName)
    11  }