github.com/shuguocloud/go-zero@v1.3.0/core/proc/process_test.go (about) 1 package proc 2 3 import ( 4 "testing" 5 6 "github.com/stretchr/testify/assert" 7 ) 8 9 func TestProcessName(t *testing.T) { 10 assert.True(t, len(ProcessName()) > 0) 11 } 12 13 func TestPid(t *testing.T) { 14 assert.True(t, Pid() > 0) 15 }