add unit test for ChartFullPath

Signed-off-by: Zhou Hao <zhouhao@cn.fujitsu.com>
Signed-off-by: Matheus Hunsche <matheus.hunsche@ifood.com.br>
pull/8840/head
Zhou Hao 6 years ago committed by Matheus Hunsche
parent 273270ecfa
commit 14fc61b934

@ -138,3 +138,24 @@ func TestChartPath(t *testing.T) {
is.Equal("foo.", chrt1.ChartPath())
is.Equal("foo", chrt2.ChartPath())
}
func TestChartFullPath(t *testing.T) {
chrt1 := Chart{
parent: &Chart{
Metadata: &Metadata{
Name: "foo",
},
},
}
chrt2 := Chart{
Metadata: &Metadata{
Name: "foo",
},
}
is := assert.New(t)
is.Equal("foo/charts/", chrt1.ChartFullPath())
is.Equal("foo", chrt2.ChartFullPath())
}

Loading…
Cancel
Save