more tests on metadata check
parent
d5ce30bb7a
commit
92220d6c5c
|
@ -203,6 +203,26 @@ func TestShouldUpdate(t *testing.T) {
|
|||
want: false,
|
||||
wantErr: false,
|
||||
},
|
||||
{
|
||||
name: "parsed prerelease patch increase, policy minor, no prerelease",
|
||||
args: args{
|
||||
current: MustParse("v1.0.0"),
|
||||
new: MustParse("v1.0.1-metadata"),
|
||||
policy: types.PolicyTypeMinor,
|
||||
},
|
||||
want: false,
|
||||
wantErr: false,
|
||||
},
|
||||
{
|
||||
name: "parsed prerelease minor increase, policy minor, both have metadata",
|
||||
args: args{
|
||||
current: MustParse("v1.0.0-metadata"),
|
||||
new: MustParse("v1.0.1-metadata"),
|
||||
policy: types.PolicyTypeMinor,
|
||||
},
|
||||
want: true,
|
||||
wantErr: false,
|
||||
},
|
||||
{
|
||||
name: "prerelease patch increase, policy minor",
|
||||
args: args{
|
||||
|
|
Loading…
Reference in New Issue