File tree Expand file tree Collapse file tree 1 file changed +25
-0
lines changed
Expand file tree Collapse file tree 1 file changed +25
-0
lines changed Original file line number Diff line number Diff line change @@ -1584,6 +1584,31 @@ func TestValidateLabel(t *testing.T) {
15841584 input : "5.3.0-SNAPSHOT" ,
15851585 expected : true ,
15861586 },
1587+ {
1588+ name : "Test 14: Invalid label - newlines" ,
1589+ input : "label-2\n \n " ,
1590+ expected : false ,
1591+ },
1592+ {
1593+ name : "Test 15: Valid label - only numbers" ,
1594+ input : "1234567" ,
1595+ expected : true ,
1596+ },
1597+ {
1598+ name : "Test 16: Invalid label - start and end with ." ,
1599+ input : ".label." ,
1600+ expected : false ,
1601+ },
1602+ {
1603+ name : "Test 17: Invalid label - lots of blank spaces" ,
1604+ input : " label" ,
1605+ expected : false ,
1606+ },
1607+ {
1608+ name : "Test 18: Invalid label - start and end with blank space" ,
1609+ input : " label " ,
1610+ expected : false ,
1611+ },
15871612 }
15881613
15891614 for _ , tt := range tests {
You can’t perform that action at this time.
0 commit comments