MCPcopy Index your code
hub / github.com/coder/websocket / cleanEnv

Function cleanEnv

conn_test.go:474–484  ·  view source on GitHub ↗
(env []string)

Source from the content-addressed store, hash-verified

472}
473
474func cleanEnv(env []string) (out []string) {
475 for _, e := range env {
476 // Filter out GITHUB envs and anything with token in it,
477 // especially GITHUB_TOKEN in CI as it breaks TestWasm.
478 if strings.HasPrefix(e, "GITHUB") || strings.Contains(e, "TOKEN") {
479 continue
480 }
481 out = append(out, e)
482 }
483 return out
484}
485
486func assertCloseStatus(exp websocket.StatusCode, err error) error {
487 if websocket.CloseStatus(err) == -1 {

Callers 1

TestWasmFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…