1
0

feat: change interface from ID()/Release() to Distro() with both

This commit is contained in:
2023-05-23 16:24:01 +00:00
parent 6f40fa554e
commit f2ce20e53b
9 changed files with 19 additions and 52 deletions

View File

@@ -13,9 +13,6 @@ func TestUbuntu(t *testing.T) {
u := Ubuntu{release: "22.04", container: "out_of_tree_ubuntu_22__04"}
assert.Equal(u.ID(), distro.Ubuntu)
assert.Equal(u.Release(), "22.04")
assert.True(u.Equal(distro.Distro{Release: "22.04", ID: distro.Ubuntu}))
assert.NotEmpty(u.Packages())