(t *testing.T)
| 16 | ) |
| 17 | |
| 18 | func testPaths(t *testing.T) (dockerfilePath, backendDockerfilePath, bakeFilePath string) { |
| 19 | wd, err := os.Getwd() |
| 20 | require.NoError(t, err) |
| 21 | projectRoot := filepath.Dir(filepath.Dir(filepath.Dir(wd))) |
| 22 | definitionTestFolderPath := filepath.Join(projectRoot, "testdata", "definition") |
| 23 | |
| 24 | dockerfilePath = filepath.Join(definitionTestFolderPath, "Dockerfile") |
| 25 | backendDockerfilePath = filepath.Join(definitionTestFolderPath, "backend", "Dockerfile") |
| 26 | bakeFilePath = filepath.Join(definitionTestFolderPath, "docker-bake.hcl") |
| 27 | return dockerfilePath, backendDockerfilePath, bakeFilePath |
| 28 | } |
| 29 | |
| 30 | func TestDefinition(t *testing.T) { |
| 31 | dockerfilePath, backendDockerfilePath, bakeFilePath := testPaths(t) |
no outgoing calls
no test coverage detected