"Fossies" - the Fresh Open Source Software Archive  

Source code changes of the file "pkg/test/framework/resource/version_test.go" between
istio-1.10.0.tar.gz and istio-1.10.1.tar.gz

About: Istio is a platform-independent service mesh that provides a uniform way to connect, secure, control, and observe microservices.

version_test.go  (istio-1.10.0):version_test.go  (istio-1.10.1)
skipping to change at line 52 skipping to change at line 52
{ {
IstioVersion("1.9.1"), IstioVersion("1.9.1"),
IstioVersion("1.9.1"), IstioVersion("1.9.1"),
0, 0,
}, },
{ {
IstioVersion("1.12"), IstioVersion("1.12"),
IstioVersion("1.3"), IstioVersion("1.3"),
1, 1,
}, },
{
IstioVersion(""),
IstioVersion(""),
0,
},
{
IstioVersion(""),
IstioVersion("1.9"),
1,
},
} }
for _, tc := range tcs { for _, tc := range tcs {
t.Run(fmt.Sprintf("compare version %s->%s", tc.a, tc.b), func(t * testing.T) { t.Run(fmt.Sprintf("compare version %s->%s", tc.a, tc.b), func(t * testing.T) {
r := tc.a.Compare(tc.b) r := tc.a.Compare(tc.b)
if r != tc.result { if r != tc.result {
t.Errorf("expected %d, got %d", tc.result, r) t.Errorf("expected %d, got %d", tc.result, r)
} }
}) })
} }
 End of changes. 1 change blocks. 
0 lines changed or deleted 10 lines changed or added

Home  |  About  |  Features  |  All  |  Newest  |  Dox  |  Diffs  |  RSS Feeds  |  Screenshots  |  Comments  |  Imprint  |  Privacy  |  HTTP(S)