Skip to content
Permalink

Comparing changes

Choose two branches to see what’s changed or to start a new pull request. If you need to, you can also or learn more about diff comparisons.

Open a pull request

Create a new pull request by comparing changes across two branches. If you need to, you can also . Learn more about diff comparisons here.
base repository: deckarep/golang-set
Failed to load repositories. Confirm that selected base ref is valid, then try again.
Loading
base: v1.7.1
Choose a base ref
...
head repository: deckarep/golang-set
Failed to load repositories. Confirm that selected head ref is valid, then try again.
Loading
compare: v1.8.0
Choose a head ref
  • 8 commits
  • 4 files changed
  • 3 contributors

Commits on Sep 27, 2018

  1. check cardinality before check subset

    nextzhou authored and deckarep committed Sep 27, 2018

    Verified

    This commit was signed with the committer’s verified signature.
    benluddy Ben Luddy
    Copy the full SHA
    699df6a View commit details

Commits on Nov 29, 2020

  1. Travis-ci: added support for ppc64le and updated go versions 1.14 & 1.15

    Signed-off-by: Devendranath Thadi <[email protected]>
    dthadi3 authored and deckarep committed Nov 29, 2020

    Verified

    This commit was created on GitHub.com and signed with GitHub’s verified signature. The key has expired.
    Copy the full SHA
    03b5720 View commit details

Commits on Dec 16, 2021

  1. adding mod file

    deckarep committed Dec 16, 2021
    Copy the full SHA
    88d3a92 View commit details
  2. updating travis go versions

    deckarep committed Dec 16, 2021
    Copy the full SHA
    bcfae0b View commit details
  3. Copy the full SHA
    fd7989e View commit details
  4. Copy the full SHA
    82e1f83 View commit details
  5. make testing verbose

    deckarep committed Dec 16, 2021
    Copy the full SHA
    ebd0439 View commit details
  6. fix go mod

    deckarep committed Dec 16, 2021
    Copy the full SHA
    645e1ba View commit details
Showing with 27 additions and 11 deletions.
  1. +21 −0 .github/workflows/ci.yml
  2. +0 −11 .travis.yml
  3. +3 −0 go.mod
  4. +3 −0 threadunsafe.go
21 changes: 21 additions & 0 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
on: [push, pull_request]
name: CI
jobs:
test:
strategy:
matrix:
go-version: [1.17.x]
os: [ubuntu-latest, macos-latest, windows-latest]
runs-on: ${{ matrix.os }}
steps:
- name: Install Go
uses: actions/setup-go@v2
with:
go-version: ${{ matrix.go-version }}
- name: Checkout code
uses: actions/checkout@v2
- name: Test
run: |
#go vet ./...
go test -v -race ./...
go test -bench=.
11 changes: 0 additions & 11 deletions .travis.yml

This file was deleted.

3 changes: 3 additions & 0 deletions go.mod
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
module github.com/deckarep/golang-set

go 1.17
3 changes: 3 additions & 0 deletions threadunsafe.go
Original file line number Diff line number Diff line change
@@ -76,6 +76,9 @@ func (set *threadUnsafeSet) Contains(i ...interface{}) bool {

func (set *threadUnsafeSet) IsSubset(other Set) bool {
_ = other.(*threadUnsafeSet)
if set.Cardinality() > other.Cardinality() {
return false
}
for elem := range *set {
if !other.Contains(elem) {
return false