(ctx context.Context, content string, imageName string)
| 903 | } |
| 904 | |
| 905 | func createAndPushLayer(ctx context.Context, content string, imageName string) (context.Context, error) { |
| 906 | l := s.NewLayer([]byte(content), types.OCIUncompressedLayer) |
| 907 | |
| 908 | ref, err := registry.ImageReferenceInStubRegistry(ctx, imageName) |
| 909 | if err != nil { |
| 910 | return ctx, err |
| 911 | } |
| 912 | |
| 913 | repo, err := name.NewRepository(ref.String()) |
| 914 | if err != nil { |
| 915 | return ctx, err |
| 916 | } |
| 917 | |
| 918 | return ctx, remote.WriteLayer(repo, l) |
| 919 | } |
| 920 | |
| 921 | func labelImage(ctx context.Context, imageName string, labels *godog.Table) (context.Context, error) { |
| 922 | state := testenv.FetchState[imageState](ctx) |
nothing calls this directly
no test coverage detected