(t *testing.T)
| 27 | ) |
| 28 | |
| 29 | func TestSetRelations(t *testing.T) { |
| 30 | for _, tc := range []struct { |
| 31 | A any |
| 32 | B any |
| 33 | AIsSubsetOfB bool |
| 34 | BIsSubsetOfA bool |
| 35 | }{ |
| 36 | { |
| 37 | AIsSubsetOfB: true, |
| 38 | BIsSubsetOfA: true, |
| 39 | }, |
| 40 | { |
| 41 | A: [][]byte{{42}, {43}}, |
| 42 | |
| 43 | BIsSubsetOfA: true, |
| 44 | }, |
| 45 | { |
| 46 | A: [][]byte{{42}, {43}}, |
| 47 | B: [][]byte{{43}, {44}}, |
| 48 | }, |
| 49 | { |
| 50 | A: [][]byte{{43}, {43}}, |
| 51 | B: [][]byte{{43}, {44}}, |
| 52 | }, |
| 53 | { |
| 54 | A: [][]byte{{43}, {43}, {43}}, |
| 55 | B: [][]byte{{43}, {44}}, |
| 56 | }, |
| 57 | { |
| 58 | A: [][]byte{{42}, {43}, {43}}, |
| 59 | B: [][]byte{{43}, {42}, {43}}, |
| 60 | |
| 61 | AIsSubsetOfB: true, |
| 62 | BIsSubsetOfA: true, |
| 63 | }, |
| 64 | { |
| 65 | A: [][]byte{}, |
| 66 | B: [][]byte{{43}, {42}, {43}}, |
| 67 | |
| 68 | AIsSubsetOfB: true, |
| 69 | }, |
| 70 | { |
| 71 | A: [][]byte{{43}, {42}, {43}}, |
| 72 | B: [][]byte{}, |
| 73 | |
| 74 | BIsSubsetOfA: true, |
| 75 | }, |
| 76 | { |
| 77 | A: []string{"a", "b"}, |
| 78 | B: [][]byte{{'a'}, {'b'}}, |
| 79 | }, |
| 80 | { |
| 81 | A: map[string]any{"a": 42, "d": 77}, |
| 82 | B: map[string]int{"a": 42, "b": 77}, |
| 83 | |
| 84 | AIsSubsetOfB: true, |
| 85 | BIsSubsetOfA: true, |
| 86 | }, |
nothing calls this directly
no test coverage detected