func goosPathError()

in testhelpers.go [139:150]


func goosPathError(code int, p string) error {
	var opName = "stat"
	if runtime.GOOS == "windows" {
		opName = "CreateFile"
	}

	return &Error{code: code, err: &os.PathError{
		Op:   opName,
		Path: p,
		Err:  syscall.ENOENT,
	}}
}