Package ocitest provides test helpers for publishing Dev Container Features to an ephemeral,
in-memory OCI registry, so tests across packages can exercise the Feature fetch and merge paths
against real registry round-trips without a network dependency.
FeatureArchive builds an in-memory tar archive containing a devcontainer-feature.json with the
given metadata, the layer payload of a published Feature. When compress is true the archive is
gzip-compressed, exercising the fetcher's decompression path.
PushImage publishes a minimal container image at host/repo:tag whose config carries the given
labels, for exercising the base-image metadata path. See [pushArtifact] for the meaning of asIndex.
Registry starts an ephemeral, in-memory OCI registry on a loopback address and returns its host
(host:port). Loopback hosts are reached over plain HTTP, which the Feature fetcher permits. The
registry is shut down when the test ends.