pelican/internal/db/helpers_test.go
Dan Anglin 83c3d58ec9
chore: project rename and license change
- Changed the name of the project to pelican
- Changed the license to MIT.
2023-04-26 14:41:50 +01:00

21 lines
318 B
Go

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
}