Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 1 of 1 for TestIsInteger (0.09 sec)

  1. operator/pkg/util/reflect_test.go

    	allIntegerTypes = append(allIntTypes, allUintTypes...)
    	nonIntTypes     = []any{nil, "", []int{}, map[string]bool{}}
    	allTypes        = append(allIntegerTypes, nonIntTypes...)
    )
    
    func TestIsInteger(t *testing.T) {
    	tests := []struct {
    		desc     string
    		function func(v reflect.Kind) bool
    		want     []any
    	}{
    		{
    			desc:     "ints",
    			function: IsIntKind,
    			want:     allIntTypes,
    		},
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Mon Jul 25 19:30:47 UTC 2022
    - 10.2K bytes
    - Viewed (0)
Back to top