Lines Matching refs:cs
338 checkMatching := func(cs LicenseConditionSet, t *testing.T) {
342 actual := cs.MatchingAny(toConditions(strings.Split(data, "|"))...)
379 checkMatchingSet := func(cs LicenseConditionSet, t *testing.T) {
382 actual := cs.MatchingAnySet(NewLicenseConditionSet(toConditions(strings.Split(data, "|"))...))
618 cs := populate()
619 if checkExpected(cs, t) {
620 checkMatching(cs, t)
622 if checkExpectedSet(cs, t) {
623 checkMatchingSet(cs, t)
628 cs := populateSet()
629 if checkExpected(cs, t) {
630 checkMatching(cs, t)
632 if checkExpectedSet(cs, t) {
633 checkMatchingSet(cs, t)
638 cs := populatePlusSet()
639 if checkExpected(cs, t) {
640 checkMatching(cs, t)
642 if checkExpectedSet(cs, t) {
643 checkMatchingSet(cs, t)
648 cs := populateMinusSet()
649 if checkExpected(cs, t) {
650 checkMatching(cs, t)
652 if checkExpectedSet(cs, t) {
653 checkMatchingSet(cs, t)