(t *testing.T)
| 655 | } |
| 656 | |
| 657 | func TestDevConfigResolveEnvExplicitAccessURL(t *testing.T) { |
| 658 | t.Setenv("CODER_SESSION_TOKEN", "") |
| 659 | t.Setenv("CODER_URL", "") |
| 660 | |
| 661 | cfg := &devConfig{ |
| 662 | apiPort: 5000, |
| 663 | accessURL: "http://myhost:5000", |
| 664 | portExplicit: portExplicit{api: true}, |
| 665 | } |
| 666 | require.NoError(t, cfg.resolveEnv()) |
| 667 | assert.Equal(t, "http://myhost:5000", cfg.accessURL) |
| 668 | } |
| 669 | |
| 670 | func TestDevConfigCmd(t *testing.T) { |
| 671 | t.Parallel() |
nothing calls this directly
no test coverage detected