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

Function configure

provisioner/terraform/provision_test.go:103–110  ·  view source on GitHub ↗
(ctx context.Context, t *testing.T, client proto.DRPCProvisionerClient, config *proto.Config)

Source from the content-addressed store, hash-verified

101}
102
103func configure(ctx context.Context, t *testing.T, client proto.DRPCProvisionerClient, config *proto.Config) proto.DRPCProvisioner_SessionClient {
104 t.Helper()
105 sess, err := client.Session(ctx)
106 require.NoError(t, err)
107 err = sess.Send(&proto.Request{Type: &proto.Request_Config{Config: config}})
108 require.NoError(t, err)
109 return sess
110}
111
112func readProvisionLog(t *testing.T, response proto.DRPCProvisioner_SessionClient) (string, *proto.Response) {
113 var last *proto.Response

Callers 9

TestParseFunction · 0.85
TestProvision_CancelFunction · 0.85
TestProvisionFunction · 0.85
TestProvision_ExtraEnvFunction · 0.85
TestProvision_SafeEnvFunction · 0.85
TestTimingsFromProvisionFunction · 0.85

Calls 3

HelperMethod · 0.65
SessionMethod · 0.65
SendMethod · 0.65

Tested by

no test coverage detected