| 1 | package toolsscip-go gomod github.com/git-lfs/git-lfs/v3 . `github.com/git-lfs/git-lfs/v3/tools`/ |
| 2 | |
| 3 | import ( |
| 4 | "testingscip-go gomod github.com/golang/go/src go1.25.0 testing/" |
| 5 | |
| 6 | "github.com/stretchr/testify/assertscip-go gomod github.com/stretchr/testify v1.11.1 `github.com/stretchr/testify/assert`/" |
| 7 | "github.com/stretchr/testify/requirescip-go gomod github.com/stretchr/testify v1.11.1 `github.com/stretchr/testify/require`/" |
| 8 | ) |
| 9 | |
| 10 | func TestOrderedSetAddAddsElementsscip-go gomod github.com/git-lfs/git-lfs/v3 . `github.com/git-lfs/git-lfs/v3/tools`/TestOrderedSetAddAddsElements().(t *testingscip-go gomod github.com/golang/go/src go1.25.0 testing/.Tscip-go gomod github.com/golang/go/src go1.25.0 testing/T#) { |
| 11 | s := NewOrderedSetFromSlicescip-go gomod github.com/git-lfs/git-lfs/v3 . `github.com/git-lfs/git-lfs/v3/tools`/NewOrderedSetFromSlice().([]string{"a", "b", "c"}) |
| 12 | |
| 13 | assertscip-go gomod github.com/stretchr/testify v1.11.1 `github.com/stretchr/testify/assert`/.Falsescip-go gomod github.com/stretchr/testify v1.11.1 `github.com/stretchr/testify/assert`/False().(t, s.Containsscip-go gomod github.com/git-lfs/git-lfs/v3 . `github.com/git-lfs/git-lfs/v3/tools`/OrderedSet#Contains().("d"), |
| 14 | "tools: did not expected s to contain \"d\"") |
| 15 | |
| 16 | assertscip-go gomod github.com/stretchr/testify v1.11.1 `github.com/stretchr/testify/assert`/.Truescip-go gomod github.com/stretchr/testify v1.11.1 `github.com/stretchr/testify/assert`/True().(t, s.Addscip-go gomod github.com/git-lfs/git-lfs/v3 . `github.com/git-lfs/git-lfs/v3/tools`/OrderedSet#Add().("d")) |
| 17 | |
| 18 | assertscip-go gomod github.com/stretchr/testify v1.11.1 `github.com/stretchr/testify/assert`/.Truescip-go gomod github.com/stretchr/testify v1.11.1 `github.com/stretchr/testify/assert`/True().(t, s.Containsscip-go gomod github.com/git-lfs/git-lfs/v3 . `github.com/git-lfs/git-lfs/v3/tools`/OrderedSet#Contains().("d"), |
| 19 | "tools: expected s to contain \"d\"") |
| 20 | } |
| 21 | |
| 22 | func TestOrderedSetContainsReturnsTrueForItemsItContainsscip-go gomod github.com/git-lfs/git-lfs/v3 . `github.com/git-lfs/git-lfs/v3/tools`/TestOrderedSetContainsReturnsTrueForItemsItContains().(t *testingscip-go gomod github.com/golang/go/src go1.25.0 testing/.Tscip-go gomod github.com/golang/go/src go1.25.0 testing/T#) { |
| 23 | s := NewOrderedSetFromSlicescip-go gomod github.com/git-lfs/git-lfs/v3 . `github.com/git-lfs/git-lfs/v3/tools`/NewOrderedSetFromSlice().([]string{"a", "b", "c"}) |
| 24 | |
| 25 | assertscip-go gomod github.com/stretchr/testify v1.11.1 `github.com/stretchr/testify/assert`/.Truescip-go gomod github.com/stretchr/testify v1.11.1 `github.com/stretchr/testify/assert`/True().(t, s.Containsscip-go gomod github.com/git-lfs/git-lfs/v3 . `github.com/git-lfs/git-lfs/v3/tools`/OrderedSet#Contains().("b"), |
| 26 | "tools: expected s to contain element \"b\"") |
| 27 | } |
| 28 | |
| 29 | func TestOrderedSetContainsReturnsFalseForItemsItDoesNotContainsscip-go gomod github.com/git-lfs/git-lfs/v3 . `github.com/git-lfs/git-lfs/v3/tools`/TestOrderedSetContainsReturnsFalseForItemsItDoesNotContains().(t *testingscip-go gomod github.com/golang/go/src go1.25.0 testing/.Tscip-go gomod github.com/golang/go/src go1.25.0 testing/T#) { |
| 30 | s := NewOrderedSetFromSlicescip-go gomod github.com/git-lfs/git-lfs/v3 . `github.com/git-lfs/git-lfs/v3/tools`/NewOrderedSetFromSlice().([]string{"a", "b", "c"}) |
| 31 | |
| 32 | assertscip-go gomod github.com/stretchr/testify v1.11.1 `github.com/stretchr/testify/assert`/.Falsescip-go gomod github.com/stretchr/testify v1.11.1 `github.com/stretchr/testify/assert`/False().(t, s.Containsscip-go gomod github.com/git-lfs/git-lfs/v3 . `github.com/git-lfs/git-lfs/v3/tools`/OrderedSet#Contains().("d"), |
| 33 | "tools: did not expect s to contain element \"d\"") |
| 34 | } |
| 35 | |
| 36 | func TestOrderedSetContainsAllReturnsTrueWhenAllElementsAreContainedscip-go gomod github.com/git-lfs/git-lfs/v3 . `github.com/git-lfs/git-lfs/v3/tools`/TestOrderedSetContainsAllReturnsTrueWhenAllElementsAreContained().(t *testingscip-go gomod github.com/golang/go/src go1.25.0 testing/.Tscip-go gomod github.com/golang/go/src go1.25.0 testing/T#) { |
| 37 | s := NewOrderedSetFromSlicescip-go gomod github.com/git-lfs/git-lfs/v3 . `github.com/git-lfs/git-lfs/v3/tools`/NewOrderedSetFromSlice().([]string{"a", "b", "c"}) |
| 38 | |
| 39 | assertscip-go gomod github.com/stretchr/testify v1.11.1 `github.com/stretchr/testify/assert`/.Truescip-go gomod github.com/stretchr/testify v1.11.1 `github.com/stretchr/testify/assert`/True().(t, s.ContainsAllscip-go gomod github.com/git-lfs/git-lfs/v3 . `github.com/git-lfs/git-lfs/v3/tools`/OrderedSet#ContainsAll().("b", "c"), |
| 40 | "tools: expected s to contain element \"b\" and \"c\"") |
| 41 | } |
| 42 | |
| 43 | func TestOrderedSetContainsAllReturnsFalseWhenAllElementsAreNotContainedscip-go gomod github.com/git-lfs/git-lfs/v3 . `github.com/git-lfs/git-lfs/v3/tools`/TestOrderedSetContainsAllReturnsFalseWhenAllElementsAreNotContained().(t *testingscip-go gomod github.com/golang/go/src go1.25.0 testing/.Tscip-go gomod github.com/golang/go/src go1.25.0 testing/T#) { |
| 44 | s := NewOrderedSetFromSlicescip-go gomod github.com/git-lfs/git-lfs/v3 . `github.com/git-lfs/git-lfs/v3/tools`/NewOrderedSetFromSlice().([]string{"a", "b", "c"}) |
| 45 | |
| 46 | assertscip-go gomod github.com/stretchr/testify v1.11.1 `github.com/stretchr/testify/assert`/.Falsescip-go gomod github.com/stretchr/testify v1.11.1 `github.com/stretchr/testify/assert`/False().(t, s.ContainsAllscip-go gomod github.com/git-lfs/git-lfs/v3 . `github.com/git-lfs/git-lfs/v3/tools`/OrderedSet#ContainsAll().("b", "c", "d"), |
| 47 | "tools: did not expect s to contain element \"b\", \"c\" and \"d\"") |
| 48 | } |
| 49 | |
| 50 | func TestOrderedSetIsSubsetReturnsTrueWhenOtherContainsAllElementsscip-go gomod github.com/git-lfs/git-lfs/v3 . `github.com/git-lfs/git-lfs/v3/tools`/TestOrderedSetIsSubsetReturnsTrueWhenOtherContainsAllElements().(t *testingscip-go gomod github.com/golang/go/src go1.25.0 testing/.Tscip-go gomod github.com/golang/go/src go1.25.0 testing/T#) { |
| 51 | s1 := NewOrderedSetFromSlicescip-go gomod github.com/git-lfs/git-lfs/v3 . `github.com/git-lfs/git-lfs/v3/tools`/NewOrderedSetFromSlice().([]string{"a", "b", "c"}) |
| 52 | s2 := NewOrderedSetFromSlicescip-go gomod github.com/git-lfs/git-lfs/v3 . `github.com/git-lfs/git-lfs/v3/tools`/NewOrderedSetFromSlice().([]string{"a", "b"}) |
| 53 | |
| 54 | assertscip-go gomod github.com/stretchr/testify v1.11.1 `github.com/stretchr/testify/assert`/.Truescip-go gomod github.com/stretchr/testify v1.11.1 `github.com/stretchr/testify/assert`/True().(t, s1.IsSubsetscip-go gomod github.com/git-lfs/git-lfs/v3 . `github.com/git-lfs/git-lfs/v3/tools`/OrderedSet#IsSubset().(s2), |
| 55 | "tools: expected [a, b] to be a subset of [a, b, c]") |
| 56 | } |
| 57 | |
| 58 | func TestOrderedSetIsSubsetReturnsFalseWhenOtherDoesNotContainAllElementsscip-go gomod github.com/git-lfs/git-lfs/v3 . `github.com/git-lfs/git-lfs/v3/tools`/TestOrderedSetIsSubsetReturnsFalseWhenOtherDoesNotContainAllElements().(t *testingscip-go gomod github.com/golang/go/src go1.25.0 testing/.Tscip-go gomod github.com/golang/go/src go1.25.0 testing/T#) { |
| 59 | s1 := NewOrderedSetFromSlicescip-go gomod github.com/git-lfs/git-lfs/v3 . `github.com/git-lfs/git-lfs/v3/tools`/NewOrderedSetFromSlice().([]string{"a", "b"}) |
| 60 | s2 := NewOrderedSetFromSlicescip-go gomod github.com/git-lfs/git-lfs/v3 . `github.com/git-lfs/git-lfs/v3/tools`/NewOrderedSetFromSlice().([]string{"a", "b", "c"}) |
| 61 | |
| 62 | assertscip-go gomod github.com/stretchr/testify v1.11.1 `github.com/stretchr/testify/assert`/.Falsescip-go gomod github.com/stretchr/testify v1.11.1 `github.com/stretchr/testify/assert`/False().(t, s1.IsSubsetscip-go gomod github.com/git-lfs/git-lfs/v3 . `github.com/git-lfs/git-lfs/v3/tools`/OrderedSet#IsSubset().(s2), |
| 63 | "tools: did not expect [a, b, c] to be a subset of [a, b]") |
| 64 | } |
| 65 | |
| 66 | func TestOrderedSetIsSupersetReturnsTrueWhenContainsAllElementsOfOtherscip-go gomod github.com/git-lfs/git-lfs/v3 . `github.com/git-lfs/git-lfs/v3/tools`/TestOrderedSetIsSupersetReturnsTrueWhenContainsAllElementsOfOther().(t *testingscip-go gomod github.com/golang/go/src go1.25.0 testing/.Tscip-go gomod github.com/golang/go/src go1.25.0 testing/T#) { |
| 67 | s1 := NewOrderedSetFromSlicescip-go gomod github.com/git-lfs/git-lfs/v3 . `github.com/git-lfs/git-lfs/v3/tools`/NewOrderedSetFromSlice().([]string{"a", "b"}) |
| 68 | s2 := NewOrderedSetFromSlicescip-go gomod github.com/git-lfs/git-lfs/v3 . `github.com/git-lfs/git-lfs/v3/tools`/NewOrderedSetFromSlice().([]string{"a", "b", "c"}) |
| 69 | |
| 70 | assertscip-go gomod github.com/stretchr/testify v1.11.1 `github.com/stretchr/testify/assert`/.Truescip-go gomod github.com/stretchr/testify v1.11.1 `github.com/stretchr/testify/assert`/True().(t, s1.IsSupersetscip-go gomod github.com/git-lfs/git-lfs/v3 . `github.com/git-lfs/git-lfs/v3/tools`/OrderedSet#IsSuperset().(s2), |
| 71 | "tools: expected [a, b, c] to be a superset of [a, b]") |
| 72 | } |
| 73 | |
| 74 | func TestOrderedSetIsSupersetReturnsFalseWhenDoesNotContainAllElementsOfOtherscip-go gomod github.com/git-lfs/git-lfs/v3 . `github.com/git-lfs/git-lfs/v3/tools`/TestOrderedSetIsSupersetReturnsFalseWhenDoesNotContainAllElementsOfOther().(t *testingscip-go gomod github.com/golang/go/src go1.25.0 testing/.Tscip-go gomod github.com/golang/go/src go1.25.0 testing/T#) { |
| 75 | s1 := NewOrderedSetFromSlicescip-go gomod github.com/git-lfs/git-lfs/v3 . `github.com/git-lfs/git-lfs/v3/tools`/NewOrderedSetFromSlice().([]string{"a", "b", "c"}) |
| 76 | s2 := NewOrderedSetFromSlicescip-go gomod github.com/git-lfs/git-lfs/v3 . `github.com/git-lfs/git-lfs/v3/tools`/NewOrderedSetFromSlice().([]string{"a", "b"}) |
| 77 | |
| 78 | assertscip-go gomod github.com/stretchr/testify v1.11.1 `github.com/stretchr/testify/assert`/.Falsescip-go gomod github.com/stretchr/testify v1.11.1 `github.com/stretchr/testify/assert`/False().(t, s1.IsSupersetscip-go gomod github.com/git-lfs/git-lfs/v3 . `github.com/git-lfs/git-lfs/v3/tools`/OrderedSet#IsSuperset().(s2), |
| 79 | "tools: did not expect [a, b] to be a superset of [a, b, c]") |
| 80 | } |
| 81 | |
| 82 | func TestOrderedSetUnionscip-go gomod github.com/git-lfs/git-lfs/v3 . `github.com/git-lfs/git-lfs/v3/tools`/TestOrderedSetUnion().(t *testingscip-go gomod github.com/golang/go/src go1.25.0 testing/.Tscip-go gomod github.com/golang/go/src go1.25.0 testing/T#) { |
| 83 | s1 := NewOrderedSetFromSlicescip-go gomod github.com/git-lfs/git-lfs/v3 . `github.com/git-lfs/git-lfs/v3/tools`/NewOrderedSetFromSlice().([]string{"a"}) |
| 84 | s2 := NewOrderedSetFromSlicescip-go gomod github.com/git-lfs/git-lfs/v3 . `github.com/git-lfs/git-lfs/v3/tools`/NewOrderedSetFromSlice().([]string{"b", "a"}) |
| 85 | |
| 86 | elems := make([]string, 0) |
| 87 | for e := range s1.Unionscip-go gomod github.com/git-lfs/git-lfs/v3 . `github.com/git-lfs/git-lfs/v3/tools`/OrderedSet#Union().(s2).Iterscip-go gomod github.com/git-lfs/git-lfs/v3 . `github.com/git-lfs/git-lfs/v3/tools`/OrderedSet#Iter().() { |
| 88 | elems = append(elems, e) |
| 89 | } |
| 90 | |
| 91 | requirescip-go gomod github.com/stretchr/testify v1.11.1 `github.com/stretchr/testify/require`/.Lenscip-go gomod github.com/stretchr/testify v1.11.1 `github.com/stretchr/testify/require`/Len().(t, elems, 2) |
| 92 | assertscip-go gomod github.com/stretchr/testify v1.11.1 `github.com/stretchr/testify/assert`/.Equalscip-go gomod github.com/stretchr/testify v1.11.1 `github.com/stretchr/testify/assert`/Equal().(t, "a", elems[0]) |
| 93 | assertscip-go gomod github.com/stretchr/testify v1.11.1 `github.com/stretchr/testify/assert`/.Equalscip-go gomod github.com/stretchr/testify v1.11.1 `github.com/stretchr/testify/assert`/Equal().(t, "b", elems[1]) |
| 94 | } |
| 95 | |
| 96 | func TestOrderedSetIntersectscip-go gomod github.com/git-lfs/git-lfs/v3 . `github.com/git-lfs/git-lfs/v3/tools`/TestOrderedSetIntersect().(t *testingscip-go gomod github.com/golang/go/src go1.25.0 testing/.Tscip-go gomod github.com/golang/go/src go1.25.0 testing/T#) { |
| 97 | s1 := NewOrderedSetFromSlicescip-go gomod github.com/git-lfs/git-lfs/v3 . `github.com/git-lfs/git-lfs/v3/tools`/NewOrderedSetFromSlice().([]string{"a"}) |
| 98 | s2 := NewOrderedSetFromSlicescip-go gomod github.com/git-lfs/git-lfs/v3 . `github.com/git-lfs/git-lfs/v3/tools`/NewOrderedSetFromSlice().([]string{"b", "a"}) |
| 99 | |
| 100 | elems := make([]string, 0) |
| 101 | for e := range s1.Intersectscip-go gomod github.com/git-lfs/git-lfs/v3 . `github.com/git-lfs/git-lfs/v3/tools`/OrderedSet#Intersect().(s2).Iterscip-go gomod github.com/git-lfs/git-lfs/v3 . `github.com/git-lfs/git-lfs/v3/tools`/OrderedSet#Iter().() { |
| 102 | elems = append(elems, e) |
| 103 | } |
| 104 | |
| 105 | requirescip-go gomod github.com/stretchr/testify v1.11.1 `github.com/stretchr/testify/require`/.Lenscip-go gomod github.com/stretchr/testify v1.11.1 `github.com/stretchr/testify/require`/Len().(t, elems, 1) |
| 106 | assertscip-go gomod github.com/stretchr/testify v1.11.1 `github.com/stretchr/testify/assert`/.Equalscip-go gomod github.com/stretchr/testify v1.11.1 `github.com/stretchr/testify/assert`/Equal().(t, "a", elems[0]) |
| 107 | } |
| 108 | |
| 109 | func TestOrderedSetDifferencescip-go gomod github.com/git-lfs/git-lfs/v3 . `github.com/git-lfs/git-lfs/v3/tools`/TestOrderedSetDifference().(t *testingscip-go gomod github.com/golang/go/src go1.25.0 testing/.Tscip-go gomod github.com/golang/go/src go1.25.0 testing/T#) { |
| 110 | s1 := NewOrderedSetFromSlicescip-go gomod github.com/git-lfs/git-lfs/v3 . `github.com/git-lfs/git-lfs/v3/tools`/NewOrderedSetFromSlice().([]string{"a", "b"}) |
| 111 | s2 := NewOrderedSetFromSlicescip-go gomod github.com/git-lfs/git-lfs/v3 . `github.com/git-lfs/git-lfs/v3/tools`/NewOrderedSetFromSlice().([]string{"a"}) |
| 112 | |
| 113 | elems := make([]string, 0) |
| 114 | for e := range s1.Differencescip-go gomod github.com/git-lfs/git-lfs/v3 . `github.com/git-lfs/git-lfs/v3/tools`/OrderedSet#Difference().(s2).Iterscip-go gomod github.com/git-lfs/git-lfs/v3 . `github.com/git-lfs/git-lfs/v3/tools`/OrderedSet#Iter().() { |
| 115 | elems = append(elems, e) |
| 116 | } |
| 117 | |
| 118 | requirescip-go gomod github.com/stretchr/testify v1.11.1 `github.com/stretchr/testify/require`/.Lenscip-go gomod github.com/stretchr/testify v1.11.1 `github.com/stretchr/testify/require`/Len().(t, elems, 1) |
| 119 | assertscip-go gomod github.com/stretchr/testify v1.11.1 `github.com/stretchr/testify/assert`/.Equalscip-go gomod github.com/stretchr/testify v1.11.1 `github.com/stretchr/testify/assert`/Equal().(t, "b", elems[0]) |
| 120 | } |
| 121 | |
| 122 | func TestOrderedSetSymmetricDifferencescip-go gomod github.com/git-lfs/git-lfs/v3 . `github.com/git-lfs/git-lfs/v3/tools`/TestOrderedSetSymmetricDifference().(t *testingscip-go gomod github.com/golang/go/src go1.25.0 testing/.Tscip-go gomod github.com/golang/go/src go1.25.0 testing/T#) { |
| 123 | s1 := NewOrderedSetFromSlicescip-go gomod github.com/git-lfs/git-lfs/v3 . `github.com/git-lfs/git-lfs/v3/tools`/NewOrderedSetFromSlice().([]string{"a", "b"}) |
| 124 | s2 := NewOrderedSetFromSlicescip-go gomod github.com/git-lfs/git-lfs/v3 . `github.com/git-lfs/git-lfs/v3/tools`/NewOrderedSetFromSlice().([]string{"b", "c"}) |
| 125 | |
| 126 | elems := make([]string, 0) |
| 127 | for e := range s1.SymmetricDifferencescip-go gomod github.com/git-lfs/git-lfs/v3 . `github.com/git-lfs/git-lfs/v3/tools`/OrderedSet#SymmetricDifference().(s2).Iterscip-go gomod github.com/git-lfs/git-lfs/v3 . `github.com/git-lfs/git-lfs/v3/tools`/OrderedSet#Iter().() { |
| 128 | elems = append(elems, e) |
| 129 | } |
| 130 | |
| 131 | requirescip-go gomod github.com/stretchr/testify v1.11.1 `github.com/stretchr/testify/require`/.Lenscip-go gomod github.com/stretchr/testify v1.11.1 `github.com/stretchr/testify/require`/Len().(t, elems, 2) |
| 132 | assertscip-go gomod github.com/stretchr/testify v1.11.1 `github.com/stretchr/testify/assert`/.Equalscip-go gomod github.com/stretchr/testify v1.11.1 `github.com/stretchr/testify/assert`/Equal().(t, "a", elems[0]) |
| 133 | assertscip-go gomod github.com/stretchr/testify v1.11.1 `github.com/stretchr/testify/assert`/.Equalscip-go gomod github.com/stretchr/testify v1.11.1 `github.com/stretchr/testify/assert`/Equal().(t, "c", elems[1]) |
| 134 | } |
| 135 | |
| 136 | func TestOrderedSetClearscip-go gomod github.com/git-lfs/git-lfs/v3 . `github.com/git-lfs/git-lfs/v3/tools`/TestOrderedSetClear().(t *testingscip-go gomod github.com/golang/go/src go1.25.0 testing/.Tscip-go gomod github.com/golang/go/src go1.25.0 testing/T#) { |
| 137 | s1 := NewOrderedSetFromSlicescip-go gomod github.com/git-lfs/git-lfs/v3 . `github.com/git-lfs/git-lfs/v3/tools`/NewOrderedSetFromSlice().([]string{"a", "b"}) |
| 138 | |
| 139 | assertscip-go gomod github.com/stretchr/testify v1.11.1 `github.com/stretchr/testify/assert`/.Equalscip-go gomod github.com/stretchr/testify v1.11.1 `github.com/stretchr/testify/assert`/Equal().(t, 2, s1.Cardinalityscip-go gomod github.com/git-lfs/git-lfs/v3 . `github.com/git-lfs/git-lfs/v3/tools`/OrderedSet#Cardinality().()) |
| 140 | |
| 141 | s1.Clearscip-go gomod github.com/git-lfs/git-lfs/v3 . `github.com/git-lfs/git-lfs/v3/tools`/OrderedSet#Clear().() |
| 142 | |
| 143 | assertscip-go gomod github.com/stretchr/testify v1.11.1 `github.com/stretchr/testify/assert`/.Equalscip-go gomod github.com/stretchr/testify v1.11.1 `github.com/stretchr/testify/assert`/Equal().(t, 0, s1.Cardinalityscip-go gomod github.com/git-lfs/git-lfs/v3 . `github.com/git-lfs/git-lfs/v3/tools`/OrderedSet#Cardinality().()) |
| 144 | } |
| 145 | |
| 146 | func TestOrderedSetRemovescip-go gomod github.com/git-lfs/git-lfs/v3 . `github.com/git-lfs/git-lfs/v3/tools`/TestOrderedSetRemove().(t *testingscip-go gomod github.com/golang/go/src go1.25.0 testing/.Tscip-go gomod github.com/golang/go/src go1.25.0 testing/T#) { |
| 147 | s1 := NewOrderedSetFromSlicescip-go gomod github.com/git-lfs/git-lfs/v3 . `github.com/git-lfs/git-lfs/v3/tools`/NewOrderedSetFromSlice().([]string{"a", "b"}) |
| 148 | |
| 149 | assertscip-go gomod github.com/stretchr/testify v1.11.1 `github.com/stretchr/testify/assert`/.Truescip-go gomod github.com/stretchr/testify v1.11.1 `github.com/stretchr/testify/assert`/True().(t, s1.Containsscip-go gomod github.com/git-lfs/git-lfs/v3 . `github.com/git-lfs/git-lfs/v3/tools`/OrderedSet#Contains().("a"), "tools: expected [a, b] to contain 'a'") |
| 150 | assertscip-go gomod github.com/stretchr/testify v1.11.1 `github.com/stretchr/testify/assert`/.Truescip-go gomod github.com/stretchr/testify v1.11.1 `github.com/stretchr/testify/assert`/True().(t, s1.Containsscip-go gomod github.com/git-lfs/git-lfs/v3 . `github.com/git-lfs/git-lfs/v3/tools`/OrderedSet#Contains().("b"), "tools: expected [a, b] to contain 'b'") |
| 151 | |
| 152 | s1.Removescip-go gomod github.com/git-lfs/git-lfs/v3 . `github.com/git-lfs/git-lfs/v3/tools`/OrderedSet#Remove().("a") |
| 153 | |
| 154 | assertscip-go gomod github.com/stretchr/testify v1.11.1 `github.com/stretchr/testify/assert`/.Falsescip-go gomod github.com/stretchr/testify v1.11.1 `github.com/stretchr/testify/assert`/False().(t, s1.Containsscip-go gomod github.com/git-lfs/git-lfs/v3 . `github.com/git-lfs/git-lfs/v3/tools`/OrderedSet#Contains().("a"), "tools: did not expect to find 'a' in [b]") |
| 155 | assertscip-go gomod github.com/stretchr/testify v1.11.1 `github.com/stretchr/testify/assert`/.Truescip-go gomod github.com/stretchr/testify v1.11.1 `github.com/stretchr/testify/assert`/True().(t, s1.Containsscip-go gomod github.com/git-lfs/git-lfs/v3 . `github.com/git-lfs/git-lfs/v3/tools`/OrderedSet#Contains().("b"), "tools: expected [b] to contain 'b'") |
| 156 | } |
| 157 | |
| 158 | func TestOrderedSetCardinalityscip-go gomod github.com/git-lfs/git-lfs/v3 . `github.com/git-lfs/git-lfs/v3/tools`/TestOrderedSetCardinality().(t *testingscip-go gomod github.com/golang/go/src go1.25.0 testing/.Tscip-go gomod github.com/golang/go/src go1.25.0 testing/T#) { |
| 159 | s1 := NewOrderedSetFromSlicescip-go gomod github.com/git-lfs/git-lfs/v3 . `github.com/git-lfs/git-lfs/v3/tools`/NewOrderedSetFromSlice().([]string{"a", "b"}) |
| 160 | |
| 161 | assertscip-go gomod github.com/stretchr/testify v1.11.1 `github.com/stretchr/testify/assert`/.Equalscip-go gomod github.com/stretchr/testify v1.11.1 `github.com/stretchr/testify/assert`/Equal().(t, 2, s1.Cardinalityscip-go gomod github.com/git-lfs/git-lfs/v3 . `github.com/git-lfs/git-lfs/v3/tools`/OrderedSet#Cardinality().(), |
| 162 | "tools: expected cardinality of [a, b] to equal 2") |
| 163 | } |
| 164 | |
| 165 | func TestOrderedSetIterscip-go gomod github.com/git-lfs/git-lfs/v3 . `github.com/git-lfs/git-lfs/v3/tools`/TestOrderedSetIter().(t *testingscip-go gomod github.com/golang/go/src go1.25.0 testing/.Tscip-go gomod github.com/golang/go/src go1.25.0 testing/T#) { |
| 166 | s1 := NewOrderedSetFromSlicescip-go gomod github.com/git-lfs/git-lfs/v3 . `github.com/git-lfs/git-lfs/v3/tools`/NewOrderedSetFromSlice().([]string{"a", "b", "c"}) |
| 167 | |
| 168 | elems := make([]string, 0) |
| 169 | for e := range s1.Iterscip-go gomod github.com/git-lfs/git-lfs/v3 . `github.com/git-lfs/git-lfs/v3/tools`/OrderedSet#Iter().() { |
| 170 | elems = append(elems, e) |
| 171 | } |
| 172 | |
| 173 | requirescip-go gomod github.com/stretchr/testify v1.11.1 `github.com/stretchr/testify/require`/.Lenscip-go gomod github.com/stretchr/testify v1.11.1 `github.com/stretchr/testify/require`/Len().(t, elems, 3) |
| 174 | assertscip-go gomod github.com/stretchr/testify v1.11.1 `github.com/stretchr/testify/assert`/.Equalscip-go gomod github.com/stretchr/testify v1.11.1 `github.com/stretchr/testify/assert`/Equal().(t, "a", elems[0]) |
| 175 | assertscip-go gomod github.com/stretchr/testify v1.11.1 `github.com/stretchr/testify/assert`/.Equalscip-go gomod github.com/stretchr/testify v1.11.1 `github.com/stretchr/testify/assert`/Equal().(t, "b", elems[1]) |
| 176 | assertscip-go gomod github.com/stretchr/testify v1.11.1 `github.com/stretchr/testify/assert`/.Equalscip-go gomod github.com/stretchr/testify v1.11.1 `github.com/stretchr/testify/assert`/Equal().(t, "c", elems[2]) |
| 177 | } |
| 178 | |
| 179 | func TestOrderedSetEqualReturnsTrueWhenSameElementsInSameOrderscip-go gomod github.com/git-lfs/git-lfs/v3 . `github.com/git-lfs/git-lfs/v3/tools`/TestOrderedSetEqualReturnsTrueWhenSameElementsInSameOrder().(t *testingscip-go gomod github.com/golang/go/src go1.25.0 testing/.Tscip-go gomod github.com/golang/go/src go1.25.0 testing/T#) { |
| 180 | s1 := NewOrderedSetFromSlicescip-go gomod github.com/git-lfs/git-lfs/v3 . `github.com/git-lfs/git-lfs/v3/tools`/NewOrderedSetFromSlice().([]string{"a", "b", "c"}) |
| 181 | s2 := NewOrderedSetFromSlicescip-go gomod github.com/git-lfs/git-lfs/v3 . `github.com/git-lfs/git-lfs/v3/tools`/NewOrderedSetFromSlice().([]string{"a", "b", "c"}) |
| 182 | |
| 183 | assertscip-go gomod github.com/stretchr/testify v1.11.1 `github.com/stretchr/testify/assert`/.Truescip-go gomod github.com/stretchr/testify v1.11.1 `github.com/stretchr/testify/assert`/True().(t, s1.Equalscip-go gomod github.com/git-lfs/git-lfs/v3 . `github.com/git-lfs/git-lfs/v3/tools`/OrderedSet#Equal().(s2), |
| 184 | "tools: expected [a, b, c] to equal [a, b, c]") |
| 185 | } |
| 186 | |
| 187 | func TestOrderedSetEqualReturnsFalseWhenSameElementsInDifferentOrderscip-go gomod github.com/git-lfs/git-lfs/v3 . `github.com/git-lfs/git-lfs/v3/tools`/TestOrderedSetEqualReturnsFalseWhenSameElementsInDifferentOrder().(t *testingscip-go gomod github.com/golang/go/src go1.25.0 testing/.Tscip-go gomod github.com/golang/go/src go1.25.0 testing/T#) { |
| 188 | s1 := NewOrderedSetFromSlicescip-go gomod github.com/git-lfs/git-lfs/v3 . `github.com/git-lfs/git-lfs/v3/tools`/NewOrderedSetFromSlice().([]string{"a", "b", "c"}) |
| 189 | s2 := NewOrderedSetFromSlicescip-go gomod github.com/git-lfs/git-lfs/v3 . `github.com/git-lfs/git-lfs/v3/tools`/NewOrderedSetFromSlice().([]string{"a", "c", "b"}) |
| 190 | |
| 191 | assertscip-go gomod github.com/stretchr/testify v1.11.1 `github.com/stretchr/testify/assert`/.Falsescip-go gomod github.com/stretchr/testify v1.11.1 `github.com/stretchr/testify/assert`/False().(t, s1.Equalscip-go gomod github.com/git-lfs/git-lfs/v3 . `github.com/git-lfs/git-lfs/v3/tools`/OrderedSet#Equal().(s2), |
| 192 | "tools: did not expect [a, b, c] to equal [a, c, b]") |
| 193 | } |
| 194 | |
| 195 | func TestOrderedSetEqualReturnsFalseWithDifferentCardinalitiesscip-go gomod github.com/git-lfs/git-lfs/v3 . `github.com/git-lfs/git-lfs/v3/tools`/TestOrderedSetEqualReturnsFalseWithDifferentCardinalities().(t *testingscip-go gomod github.com/golang/go/src go1.25.0 testing/.Tscip-go gomod github.com/golang/go/src go1.25.0 testing/T#) { |
| 196 | s1 := NewOrderedSetFromSlicescip-go gomod github.com/git-lfs/git-lfs/v3 . `github.com/git-lfs/git-lfs/v3/tools`/NewOrderedSetFromSlice().([]string{"a"}) |
| 197 | s2 := NewOrderedSetFromSlicescip-go gomod github.com/git-lfs/git-lfs/v3 . `github.com/git-lfs/git-lfs/v3/tools`/NewOrderedSetFromSlice().([]string{"a", "b"}) |
| 198 | |
| 199 | assertscip-go gomod github.com/stretchr/testify v1.11.1 `github.com/stretchr/testify/assert`/.Falsescip-go gomod github.com/stretchr/testify v1.11.1 `github.com/stretchr/testify/assert`/False().(t, s1.Equalscip-go gomod github.com/git-lfs/git-lfs/v3 . `github.com/git-lfs/git-lfs/v3/tools`/OrderedSet#Equal().(s2), |
| 200 | "tools: did not expect [a] to equal [a, b]") |
| 201 | } |
| 202 | |
| 203 | func TestOrderedSetClonescip-go gomod github.com/git-lfs/git-lfs/v3 . `github.com/git-lfs/git-lfs/v3/tools`/TestOrderedSetClone().(t *testingscip-go gomod github.com/golang/go/src go1.25.0 testing/.Tscip-go gomod github.com/golang/go/src go1.25.0 testing/T#) { |
| 204 | s1 := NewOrderedSetFromSlicescip-go gomod github.com/git-lfs/git-lfs/v3 . `github.com/git-lfs/git-lfs/v3/tools`/NewOrderedSetFromSlice().([]string{"a", "b", "c"}) |
| 205 | |
| 206 | s2 := s1.Clonescip-go gomod github.com/git-lfs/git-lfs/v3 . `github.com/git-lfs/git-lfs/v3/tools`/OrderedSet#Clone().() |
| 207 | |
| 208 | elems := make([]string, 0) |
| 209 | for e := range s2.Iterscip-go gomod github.com/git-lfs/git-lfs/v3 . `github.com/git-lfs/git-lfs/v3/tools`/OrderedSet#Iter().() { |
| 210 | elems = append(elems, e) |
| 211 | } |
| 212 | |
| 213 | requirescip-go gomod github.com/stretchr/testify v1.11.1 `github.com/stretchr/testify/require`/.Lenscip-go gomod github.com/stretchr/testify v1.11.1 `github.com/stretchr/testify/require`/Len().(t, elems, 3) |
| 214 | assertscip-go gomod github.com/stretchr/testify v1.11.1 `github.com/stretchr/testify/assert`/.Equalscip-go gomod github.com/stretchr/testify v1.11.1 `github.com/stretchr/testify/assert`/Equal().(t, "a", elems[0]) |
| 215 | assertscip-go gomod github.com/stretchr/testify v1.11.1 `github.com/stretchr/testify/assert`/.Equalscip-go gomod github.com/stretchr/testify v1.11.1 `github.com/stretchr/testify/assert`/Equal().(t, "b", elems[1]) |
| 216 | assertscip-go gomod github.com/stretchr/testify v1.11.1 `github.com/stretchr/testify/assert`/.Equalscip-go gomod github.com/stretchr/testify v1.11.1 `github.com/stretchr/testify/assert`/Equal().(t, "c", elems[2]) |
| 217 | } |