blob: 4e6e672d5406d06d3cb0e005cc7b9318fa74d6c9 [file] [edit]
// Copyright 2016 Marc-Antoine Ruel. All rights reserved.
// Use of this source code is governed under the Apache License, Version 2.0
// that can be found in the LICENSE file.
package scm
import (
"errors"
"os"
"testing"
"github.com/maruel/ut"
)
func TestRelToGOPATH(t *testing.T) {
t.Parallel()
p, err := relToGOPATH("foo", string(os.PathListSeparator))
ut.AssertEqual(t, "", p)
ut.AssertEqual(t, errors.New("failed to find GOPATH relative directory for foo"), err)
}