()
| 37 | } |
| 38 | |
| 39 | func 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 | |
| 48 | func TestContext(t *testing.T) { |
| 49 | flag.Parse() |
no outgoing calls
no test coverage detected