@@ -1084,12 +1084,6 @@ func TestParseTokens(t *testing.T) {
1084
1084
{"operator error - missing operator" , getMissingOperatorTokens (0 ),
1085
1085
& node {}, "" , errors .New ("licenses or expressions are not separated by an operator" ),
1086
1086
},
1087
- {"operator error - missing license after OR" , getMissingSecondLicenseInORTokens (0 ),
1088
- & node {}, "" , errors .New ("expected expression following OR, but found none" ),
1089
- },
1090
- {"operator error - missing license after AND" , getMissingSecondLicenseInANDTokens (0 ),
1091
- & node {}, "" , errors .New ("expected expression following AND, but found none" ),
1092
- },
1093
1087
{"operator error - starts with close parenthesis" , getStartsWithCloseParenTokens (0 ),
1094
1088
& node {}, "" , errors .New ("expression starts with close parenthesis" ),
1095
1089
},
@@ -1371,20 +1365,6 @@ func getMissingOperatorTokens(index int) *tokenStream {
1371
1365
return getTokenStream (tokens , index )
1372
1366
}
1373
1367
1374
- func getMissingSecondLicenseInORTokens (index int ) * tokenStream {
1375
- var tokens []token
1376
- tokens = append (tokens , token {role : licenseToken , value : "MIT" })
1377
- tokens = append (tokens , token {role : operatorToken , value : "OR" })
1378
- return getTokenStream (tokens , index )
1379
- }
1380
-
1381
- func getMissingSecondLicenseInANDTokens (index int ) * tokenStream {
1382
- var tokens []token
1383
- tokens = append (tokens , token {role : licenseToken , value : "MIT" })
1384
- tokens = append (tokens , token {role : operatorToken , value : "AND" })
1385
- return getTokenStream (tokens , index )
1386
- }
1387
-
1388
1368
func getStartsWithCloseParenTokens (index int ) * tokenStream {
1389
1369
var tokens []token
1390
1370
tokens = append (tokens , token {role : operatorToken , value : ")" })
0 commit comments