(t *testing.T)
| 177 | } |
| 178 | |
| 179 | func 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 | } |
nothing calls this directly
no test coverage detected