MCPcopy Create free account
hub / github.com/coder/envbuilder / TestOptions_SetDefaults

Function TestOptions_SetDefaults

options/defaults_test.go:179–197  ·  view source on GitHub ↗
(t *testing.T)

Source from the content-addressed store, hash-verified

177}
178
179func TestOptions_SetDefaults(t *testing.T) {
180 t.Parallel()
181
182 expected := options.Options{
183 InitScript: "sleep infinity",
184 InitCommand: "/bin/sh",
185 IgnorePaths: []string{"/var/run", "/product_uuid", "/product_name"},
186 Filesystem: chmodfs.New(osfs.New("/")),
187 GitURL: "",
188 WorkspaceBaseDir: "/workspaces",
189 WorkspaceFolder: "/workspaces/empty",
190 WorkingDirBase: "/.envbuilder",
191 BinaryPath: "/.envbuilder/bin/envbuilder",
192 }
193
194 var actual options.Options
195 actual.SetDefaults()
196 assert.Equal(t, expected, actual)
197}

Callers

nothing calls this directly

Calls 2

SetDefaultsMethod · 0.95
NewFunction · 0.92

Tested by

no test coverage detected