Lines Matching refs:expected

29 		expected    []string
40 expected: []string{},
51 expected: []string{},
62 expected: []string{},
72 expected: []string{"notice"},
83 expected: []string{"notice"},
94 expected: []string{"notice"},
112 expected: []string{
145 expected: []string{
173 expected: []string{
211 expected: []string{
258 expected: []string{},
275expected: []string{"permissive", "notice", "restricted", "restricted_if_statically_linked", "propr…
329 expected := NewLicenseConditionSet(expectedConditions...)
334 t.Logf("MatchingAny(%s): expected set %#v %s", data, expected, expected.String())
336 if actual != expected {
337 t.Errorf("MatchingAny(%s): got %#v, want %#v", data, actual, expected)
369 expected := NewLicenseConditionSet(toConditions(expectedNames)...)
374 t.Logf("MatchingAnySet(%s): expected set %#v %s", data, expected, expected.String())
376 if actual != expected {
377 t.Errorf("MatchingAnySet(%s): got %#v, want %#v", data, actual, expected)
410 t.Logf("checkExpected{%s}", strings.Join(tt.expected, ", "))
412 expectedConditions := toConditions(tt.expected)
413 expected := NewLicenseConditionSet(expectedConditions...)
418 t.Logf("expected license condition set: %#v %s", expected, expected.String())
420 if actual != expected {
421 t.Errorf("checkExpected: got %#v, want %#v", actual, expected)
425 if len(actualNames) != len(tt.expected) {
426 t.Errorf("len(actual.Names()): got %d, want %d", len(actualNames), len(tt.expected))
429 if actualNames[i] != tt.expected[i] {
430 t.Errorf("actual.Names()[%d]: got %s, want %s", i, actualNames[i], tt.expected[i])
449 if len(tt.expected) == 0 {
476 notExpected := (AllLicenseConditions &^ expected)
480 if len(tt.expected) == 0 {
510 t.Logf("checkExpectedSet{%s}", strings.Join(tt.expected, ", "))
512 expectedConditions := toConditions(tt.expected)
513 expected := NewLicenseConditionSet(expectedConditions...)
518 t.Logf("expected license condition set: %#v %s", expected, expected.String())
520 if actual != expected {
521 t.Errorf("checkExpectedSet: got %#v, want %#v", actual, expected)
525 if len(actualNames) != len(tt.expected) {
526 t.Errorf("len(actual.Names()): got %d, want %d", len(actualNames), len(tt.expected))
529 if actualNames[i] != tt.expected[i] {
530 t.Errorf("actual.Names()[%d]: got %s, want %s", i, actualNames[i], tt.expected[i])
549 if len(tt.expected) == 0 {
553 if actual.MatchesAnySet(expected) {
556 if actual.MatchesEverySet(expected, expected) {
563 if !actual.MatchesAnySet(expected) {
566 if !actual.MatchesEverySet(expected, expected) {
571 notExpected := (AllLicenseConditions &^ expected)
574 if len(tt.expected) == 0 {
575 if actual.MatchesAnySet(expected, notExpected) {
579 if !actual.MatchesAnySet(expected, notExpected) {
589 if actual.MatchesEverySet(expected, notExpected) {
593 if !actual.Difference(expected).IsEmpty() {
596 if expected != actual.Intersection(expected) {
597 …ersection({expected}): want true, got false (%#v != %#v)", expected, actual.Intersection(expected))
599 if actual != actual.Intersection(expected) {
600 …ntersection({expected}): want true, got false (%#v != %#v)", actual, actual.Intersection(expected))