18 lines
295 B
Go
18 lines
295 B
Go
package main
|
|
|
|
import (
|
|
"os"
|
|
"path/filepath"
|
|
"testing"
|
|
|
|
"github.com/stretchr/testify/assert"
|
|
)
|
|
|
|
func TestCreateWorkDir(t *testing.T) {
|
|
homeDir, err := os.UserHomeDir()
|
|
assert.NoError(t, err)
|
|
t.Logf("homeDir: %s", homeDir)
|
|
join := filepath.Join(homeDir, ".ja")
|
|
t.Logf("join: %s", join)
|
|
}
|