MCPcopy Index your code
hub / github.com/koding/kite / transportFromEnv

Function transportFromEnv

kite_test.go:39–46  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

37}
38
39func transportFromEnv() config.Transport {
40 env := os.Getenv("KITE_TRANSPORT")
41 tr, ok := config.Transports[env]
42 if env != "" && !ok {
43 panic(fmt.Errorf("transport %q doesn't exists", env))
44 }
45 return tr
46}
47
48func TestContext(t *testing.T) {
49 flag.Parse()

Callers 2

TestContextFunction · 0.85
TestMultipleFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected