diff options
author | Miloslav Trmač <mitr@redhat.com> | 2019-01-14 03:58:35 +0100 |
---|---|---|
committer | Miloslav Trmač <mitr@redhat.com> | 2019-01-14 04:06:58 +0100 |
commit | 6486e2c41be0aa50bd5b70d859a23f36070d0ae1 (patch) | |
tree | 83ac8e405d7aed2efe966815cd7ac61befc769a6 /libpod/image/parts_test.go | |
parent | a6e668fac54b8dcc34b9810738b22fa7c8561325 (diff) | |
download | podman-6486e2c41be0aa50bd5b70d859a23f36070d0ae1.tar.gz podman-6486e2c41be0aa50bd5b70d859a23f36070d0ae1.tar.bz2 podman-6486e2c41be0aa50bd5b70d859a23f36070d0ae1.zip |
Drop image.DecomposeString, make image.Parts private imageParts again
Now that DecomposeString has no users, make the type private again.
Any new users of it should come with a rationale - and new users
of the "none"/"latest" handling of untagged/digested names that is
currently implemented should have an exceptionaly unusual rationale.
Signed-off-by: Miloslav Trmač <mitr@redhat.com>
Diffstat (limited to 'libpod/image/parts_test.go')
-rw-r--r-- | libpod/image/parts_test.go | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/libpod/image/parts_test.go b/libpod/image/parts_test.go index 1e01c85d3..518538f0b 100644 --- a/libpod/image/parts_test.go +++ b/libpod/image/parts_test.go @@ -55,9 +55,9 @@ func TestDecompose(t *testing.T) { } else { assert.NoError(t, err, c.input) assert.Equal(t, c.transport, parts.transport, c.input) - assert.Equal(t, c.registry, parts.Registry, c.input) + assert.Equal(t, c.registry, parts.registry, c.input) assert.Equal(t, c.name, parts.name, c.input) - assert.Equal(t, c.tag, parts.Tag, c.input) + assert.Equal(t, c.tag, parts.tag, c.input) assert.Equal(t, c.isTagged, parts.isTagged, c.input) assert.Equal(t, c.hasRegistry, parts.hasRegistry, c.input) assert.Equal(t, c.assembled, parts.assemble(), c.input) |