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

Function TestCreateAgentClient_Token

cli/root_test.go:305–312  ·  view source on GitHub ↗
(t *testing.T)

Source from the content-addressed store, hash-verified

303}
304
305func TestCreateAgentClient_Token(t *testing.T) {
306 t.Parallel()
307
308 client := createAgentWithFlags(t,
309 "--agent-token", "fake-token",
310 "--agent-url", "http://coder.fake")
311 require.Equal(t, "fake-token", client.GetSessionToken())
312}
313
314func TestCreateAgentClient_Google(t *testing.T) {
315 t.Parallel()

Callers

nothing calls this directly

Calls 3

createAgentWithFlagsFunction · 0.85
GetSessionTokenMethod · 0.65
EqualMethod · 0.45

Tested by

no test coverage detected