Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 1 of 1 for TestIntSet (0.08 sec)

  1. plugin/pkg/auth/authorizer/node/intset_test.go

    See the License for the specific language governing permissions and
    limitations under the License.
    */
    
    package node
    
    import (
    	"testing"
    
    	"github.com/stretchr/testify/assert"
    )
    
    func TestIntSet(t *testing.T) {
    	i := newIntSet()
    
    	assert.False(t, i.has(1))
    	assert.False(t, i.has(2))
    	assert.False(t, i.has(3))
    	assert.False(t, i.has(4))
    
    	i.reset()
    	i.increment(1) // to 1
    	i.increment(2) // to 1
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Mon Feb 10 18:24:13 UTC 2020
    - 1.5K bytes
    - Viewed (0)
Back to top