MCPcopy Create free account
hub / github.com/JordanCoin/codemap / TestProcessCommandLineCurrentProcess

Function TestProcessCommandLineCurrentProcess

watch/state_more_test.go:78–89  ·  view source on GitHub ↗
(t *testing.T)

Source from the content-addressed store, hash-verified

76}
77
78func 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
91func TestOwnedDaemonHelperProcess(t *testing.T) {
92 if os.Getenv("CODEMAP_WATCH_HELPER") != "1" {

Callers

nothing calls this directly

Calls 2

processCommandLineFunction · 0.70

Tested by

no test coverage detected