func (m *MockDownloader) Download(url, destDir string) (string, error) {
	return m.output, m.errDownload
}
Download mock method
package downloader
import (
	"fmt"
	"io/ioutil"
	"log"
	"os"
	"path/filepath"
	"reflect"
	"testing"
	"github.com/accurics/terrascan/pkg/utils"
	"github.com/hashicorp/go-version"
	hclConfigs "github.com/hashicorp/terraform/configs"
	"github.com/hashicorp/terraform/registry/regsrc"
	"github.com/hashicorp/terraform/registry/response"
)
var (
	someAddr = "some-address"
)
type MockDownloader struct {
	output          string
	subDir          string
	errDownload     error
	errGetURLSubDir error
	errSubDirGlob   error
}