MCPcopy Index your code
hub / github.com/coder/coder / TestDevConfigResolveEnvExplicitAccessURL

Function TestDevConfigResolveEnvExplicitAccessURL

scripts/develop/main_test.go:657–668  ·  view source on GitHub ↗
(t *testing.T)

Source from the content-addressed store, hash-verified

655}
656
657func 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
670func TestDevConfigCmd(t *testing.T) {
671 t.Parallel()

Callers

nothing calls this directly

Calls 3

resolveEnvMethod · 0.95
SetenvMethod · 0.80
EqualMethod · 0.45

Tested by

no test coverage detected