(t *testing.T)
| 76 | } |
| 77 | |
| 78 | func TestProcessCommandLineCurrentProcess(t *testing.T) { |
| 79 | cmdline, err := processCommandLine(os.Getpid()) |
| 80 | if err != nil { |
| 81 | if shouldSkipProcessCommandError(err) { |
| 82 | t.Skipf("process command introspection not permitted in this environment: %v", err) |
| 83 | } |
| 84 | t.Fatalf("processCommandLine error: %v", err) |
| 85 | } |
| 86 | if cmdline == "" { |
| 87 | t.Fatal("expected current process command line to be non-empty") |
| 88 | } |
| 89 | } |
| 90 | |
| 91 | func TestOwnedDaemonHelperProcess(t *testing.T) { |
| 92 | if os.Getenv("CODEMAP_WATCH_HELPER") != "1" { |
nothing calls this directly
no test coverage detected