(t *testing.T, image *fakes.Image, bp buildpack.BuildModule)
| 2084 | } |
| 2085 | |
| 2086 | func assertImageHasOrderBpLayer(t *testing.T, image *fakes.Image, bp buildpack.BuildModule) { |
| 2087 | t.Helper() |
| 2088 | |
| 2089 | dirPath := fmt.Sprintf("/cnb/buildpacks/%s/%s", bp.Descriptor().Info().ID, bp.Descriptor().Info().Version) |
| 2090 | layerTar, err := image.FindLayerWithPath(dirPath) |
| 2091 | h.AssertNil(t, err) |
| 2092 | |
| 2093 | h.AssertOnTarEntry(t, layerTar, dirPath, |
| 2094 | h.IsDirectory(), |
| 2095 | ) |
| 2096 | |
| 2097 | h.AssertOnTarEntry(t, layerTar, path.Dir(dirPath), |
| 2098 | h.IsDirectory(), |
| 2099 | ) |
| 2100 | } |
no test coverage detected