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

Function TestBuildInfo

coderd/coderd_test.go:45–56  ·  view source on GitHub ↗
(t *testing.T)

Source from the content-addressed store, hash-verified

43}
44
45func TestBuildInfo(t *testing.T) {
46 t.Parallel()
47 client := coderdtest.New(t, nil)
48
49 ctx, cancel := context.WithTimeout(context.Background(), testutil.WaitLong)
50 defer cancel()
51
52 buildInfo, err := client.BuildInfo(ctx)
53 require.NoError(t, err)
54 require.Equal(t, buildinfo.ExternalURL(), buildInfo.ExternalURL, "external URL")
55 require.Equal(t, buildinfo.Version(), buildInfo.Version, "version")
56}
57
58func TestDERP(t *testing.T) {
59 t.Parallel()

Callers

nothing calls this directly

Calls 5

NewFunction · 0.92
ExternalURLFunction · 0.92
VersionFunction · 0.92
BuildInfoMethod · 0.80
EqualMethod · 0.45

Tested by

no test coverage detected