pelican/internal/db/helpers_test.go

22 lines
318 B
Go
Raw Permalink Normal View History

2023-05-06 12:49:40 +01:00
package db_test
import (
"fmt"
"os"
"path/filepath"
)
const (
success = "\u2713"
failure = "\u2717"
)
func projectRoot() (string, error) {
cwd, err := os.Getwd()
if err != nil {
return "", fmt.Errorf("unable to get the current working directory, %w", err)
}
return filepath.Join(cwd, "..", ".."), nil
}