github.com/cobalt77/jfrog-client-go@v0.14.5/artifactory/services/utils/utils_test.go (about)

     1  package utils
     2  
     3  import (
     4  	"os"
     5  	"path/filepath"
     6  
     7  	"github.com/cobalt77/jfrog-client-go/utils/log"
     8  )
     9  
    10  func init() {
    11  	log.SetLogger(log.NewLogger(log.DEBUG, nil))
    12  }
    13  
    14  func getBaseTestDir() (string, error) {
    15  	pwd, err := os.Getwd()
    16  	if err != nil {
    17  		return "", err
    18  	}
    19  	return filepath.Join(pwd, "tests", "testdata"), nil
    20  }