mirror of
https://github.com/zeromicro/go-zero.git
synced 2025-01-23 17:20:24 +08:00
16 lines
214 B
Go
16 lines
214 B
Go
|
package proc
|
||
|
|
||
|
import (
|
||
|
"testing"
|
||
|
|
||
|
"github.com/stretchr/testify/assert"
|
||
|
)
|
||
|
|
||
|
func TestProcessName(t *testing.T) {
|
||
|
assert.True(t, len(ProcessName()) > 0)
|
||
|
}
|
||
|
|
||
|
func TestPid(t *testing.T) {
|
||
|
assert.True(t, Pid() > 0)
|
||
|
}
|