process_test.go 214 B

123456789101112131415
  1. package proc
  2. import (
  3. "testing"
  4. "github.com/stretchr/testify/assert"
  5. )
  6. func TestProcessName(t *testing.T) {
  7. assert.True(t, len(ProcessName()) > 0)
  8. }
  9. func TestPid(t *testing.T) {
  10. assert.True(t, Pid() > 0)
  11. }