github.com/mloves0824/enron/cmd/enron@v0.0.0-20230830012320-113bbf6be3c8/internal/project/project_linux_test.go (about) 1 //go:build linux 2 // +build linux 3 4 package project 5 6 import ( 7 "testing" 8 ) 9 10 func Test_processProjectParams(t *testing.T) { 11 type args struct { 12 projectName string 13 fallbackPlaceDir string 14 } 15 tests := []struct { 16 name string 17 args args 18 want string 19 }{ 20 {"absLinux", args{projectName: "/home/kratos/awesome/go/demo", fallbackPlaceDir: ""}, "/home/kratos/awesome/go"}, 21 } 22 for _, tt := range tests { 23 t.Run(tt.name, func(t *testing.T) { 24 if _, got := processProjectParams(tt.args.projectName, tt.args.fallbackPlaceDir); got != tt.want { 25 t.Errorf("processProjectParams() = %v, want %v", got, tt.want) 26 } 27 }) 28 } 29 }