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

Function TestSubsystems

codersdk/agentsdk/convert_test.go:168–182  ·  view source on GitHub ↗
(t *testing.T)

Source from the content-addressed store, hash-verified

166}
167
168func TestSubsystems(t *testing.T) {
169 t.Parallel()
170 ss := []codersdk.AgentSubsystem{
171 codersdk.AgentSubsystemEnvbox,
172 codersdk.AgentSubsystemEnvbuilder,
173 codersdk.AgentSubsystemExectrace,
174 }
175 ps, err := agentsdk.ProtoFromSubsystems(ss)
176 require.NoError(t, err)
177 require.Equal(t, ps, []proto.Startup_Subsystem{
178 proto.Startup_ENVBOX,
179 proto.Startup_ENVBUILDER,
180 proto.Startup_EXECTRACE,
181 })
182}
183
184func TestProtoFromLifecycle(t *testing.T) {
185 t.Parallel()

Callers

nothing calls this directly

Calls 2

ProtoFromSubsystemsFunction · 0.92
EqualMethod · 0.45

Tested by

no test coverage detected